Dealing with dependencies in npm