malcoauri
malcoauri

Reputation: 12199

npm shrinkwrap extraneous module

There is the following problem - I installed all modules and I'm trying to make npm-shrinkwrap.json file:

npm shrinkwrap

But I always get the following error:

npm ERR! Darwin 14.3.0
npm ERR! argv "/usr/local/Cellar/node/4.1.2/bin/node" "/usr/local/bin/npm" "shrinkwrap"
npm ERR! node v4.1.2
npm ERR! npm  v2.10.1

npm ERR! Problems were encountered
npm ERR! Please correct and try again.
npm ERR! extraneous: [email protected] /Users/ulnda/projects/folder/node_modules/my-module/node_modules/webdriverio/node_modules/core-js
npm ERR! extraneous: [email protected] /Users/ulnda/projects/folder/node_modules/core-js
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ulnda/projects/folder/npm-debug.log

What does it mean? How can I fix it? Thanks in advance!

Upvotes: 23

Views: 5471

Answers (1)

Coffee Bite
Coffee Bite

Reputation: 5164

Try npm prune before shrinkwrapping.

Upvotes: 39

Related Questions