You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
npm 5 uninstalls dependencies when switching between branches/configs #17384
Using npm 5, I'm trying to commit package.json and npm-shrinkwrap.json (or package-lock.json) changes on a branch and then simulate pushing those out to users.
When switching to the new branch and running install, the relevant package gets updated, but dependencies get uninstall.
From looking at the silly debug log output, it appears that the modules were listed in the current tree, but were removed from the ideal tree for some reason.
Activity
Salakar commentedon Jun 22, 2017
Happening for a few of our users who are using v5 also in issue mentioned above.
Standard8 commentedon Jul 7, 2017
I've just tested this in 5.1.0 and there seems to be no problems now.
Thank you to those that helped fix this.