-
-
Notifications
You must be signed in to change notification settings - Fork 27
Description
We are not able to run npm install with recent npm versions
Expected behaviour
npm install with success on all (at least recent npm versions)
For now, we'll just keep on using a compatible npm version, but at some point, this is going to be an issue.
...
Actual behaviour
Did not try for all npm versions, but with 3.8.3 it is working fine, while with 3.8.9 or 3.9.2 (currently latest) npm install no longer finds the files.
From the error logs, the issue is pretty clear, the meaning of './' changed in a version between 3.8.3 and 3.8.9 and now, for dependencies, npm is building the path starting from the node_modules/package repertory instead of the working directory
...
Steps to reproduce
on a shrinkwrapped project
npm install -g npm@3.8.3
rm -rf node_modules
npm install
=> all good
npm install -g npm@3.9.2
rm -rf node_modules
npm install
=> all dependencies are failing
...
Software versions used
OS : Ubuntu 14.04
node.js : 5.10.1
npm : 3.8.3 => ok, 3.8.9 or 3.9.2 => not ok
shrinkpack : 0.12.3
Log output when running shrinkpack
$ rm -rf node_modules
$ npm install
Running node v5.10.1
npm ERR! addLocal Could not install /.../node_modules/dom-serializer/node_shrinkwrap/domelementtype-1.1.3.tgz
npm ERR! addLocal Could not install /.../node_modules/dom-serializer/node_shrinkwrap/entities-1.1.1.tgz
npm ERR! addLocal Could not install /.../node_modules/readline2/node_shrinkwrap/ansi-regex-1.1.1.tgz
npm ERR! addLocal Could not install /.../node_modules/readline2/node_shrinkwrap/mute-stream-0.0.4.tgz
npm ERR! addLocal Could not install /.../node_modules/readline2/node_shrinkwrap/strip-ansi-2.0.1.tgz
npm ERR! addLocal Could not install /.../node_modules/camelcase-keys/node_shrinkwrap/camelcase-2.1.0.tgz
npm ERR! addLocal Could not install /.../node_modules/indent-string/node_shrinkwrap/repeating-2.0.0.tgz
...