我试图安装one of my own packages如下NPM从git仓库安装失败,ENOENT
npm install --save gfarrell/state.js
,我收到以下错误(full log here):
npm ERR! addLocal Could not install gfarrell/state.js
npm ERR! Error: ENOENT, stat 'gfarrell/state.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--save" "gfarrell/state.js"
npm ERR! cwd /Users/gideon/Code/PresenceMonitor
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.10
npm ERR! path gfarrell/state.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/gideon/Code/PresenceMonitor/npm-debug.log
npm ERR! not ok code 0
现在我已经试过various solutions包括:
npm cache clean
sudo npm cache clean
rm -rf ~/.npm
sudo npm install --save gfarrell/state.js
npm install --save git://github.com/gfarrell/state.js.git
,但一切都没有改变错误输出。我看不出模块的package.json有什么问题,并且我还没有向我的本地package.json
添加任何内容。我其实试过在早期版本上安装这个软件包,它运行良好,所以我只是不明白发生了什么问题。
不用说,这一切都很令人沮丧。还有什么事情我只是没有看到?
你是否设法解决这个问题? – 2017-02-13 13:17:51
我不记得如何,我很害怕。但下面的第二个答案可能有帮助? – GTF 2017-02-15 14:25:54
不行。尽管 – 2017-02-15 14:33:45