2

I'm running on OSX (El Capitan) with node v5.0.0 and npm v3.3.9. if I attempt an upgrade:

npm upgrade

I get the error below:

npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer
maintained. Upgrade to lodash@^3.0.0
npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/bin/npm"
"upgrade"
npm ERR! node v5.0.0
npm ERR! npm  v3.3.9
npm ERR! code EREADFILE

npm ERR! Error extracting /Users/ekkis/.npm/slimerjs/0.9.5/package.tgz
archive: ENOENT: no such file or directory, open
'/Users/ekkis/.npm/slimerjs/0.9.5/package.tgz'
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/ekkis/Downloads/client-side-testing-0.1/npm-debug.log

I've tried uninstalling this slimerjs (whatever that is) both locally and globally but it still fails. if I look in the given directory there is indeed no 0.9.5 installed but I do find a 0.9.6

so what requires it and why isn't it satisfied with the later version? and most importantly, how do I fix it?

4

3 回答 3

4

有人建议 3.3.9 已经落后于时代。升级(现在是 v.3.5.2)似乎解决了这个问题:

sudo npm install -g npm

于 2015-12-23T19:54:06.963 回答
0

暂时,安装特定版本的 slimmerjs 例如。npm install slimerjs@0.9.5

https://github.com/graingert/slimerjs/issues/34

于 2016-01-07T13:58:45.027 回答
0

该问题在此处的 NPM 项目中是已知的 - https://github.com/npm/npm/issues/10057。安装“最新”设置为预发布版本的软件包时,npm@3.x 存在问题。

我的修复是将 npm 降级到 2.14.10 - 2.x 系列中的最新稳定版本,因为尚未发布修复。

sudo npm install -g npm@2.14.10

于 2016-01-06T04:58:02.513 回答