Tuesday, 9 May 2017

Npm package install package with different version for sub projects

I have a hierarchy like this:

-- root
   - project-one
   - project-two

In my root, I require package version 1, and in my project-two, I need the same package but version 2.

So I tried to npm init in the project-two folder and install version 2, but when I require the package, it's still taking the version one from the root.

How can I do this?



via ng2user

No comments:

Post a Comment