This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
npm 3.0 flattens hierarchy, causes npm-shrinkwrap "extraneous" errors #83
Comments
This is a blocker even for users who are not using npm 3.0. The |
+1 also seeing this issue |
+:100: |
1 similar comment
+:100: |
This tool is not supported with npm3.0. I'm sorry. I suspect that the majority of problems that this tool fixes have been resolved in npm3.0 Try just using |
As more and more users are switching to npm@3, it might be worth adding a note to the readme that this tool is not intended to be used with npm > 2. |
Any updates on that :( ? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One of npm 3.0's improvements is that it flattens the node_modules dependency hierarchy. This causes npm-shrinkwrap to fail with "extraneous" errors. It looks like npm-shrinkwrap is getting confused because subdependencies are being pulled up into the root node_modules directory.
Recreate by installing npm 3.0. Delete existing node_modules dir and run
npm install
. I also rannpm dedupe
, though that may not be necessary. Then runnpm-shrinkwrap --dev
.The text was updated successfully, but these errors were encountered: