【发布时间】:2014-09-21 12:55:17
【问题描述】:
我正在尝试按如下方式安装one of my own packages
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 cleansudo npm cache cleanrm -rf ~/.npmsudo npm install --save gfarrell/state.jsnpm install --save git://github.com/gfarrell/state.js.git
但没有任何改变错误输出。我看不出模块的package.json 有什么问题,我也没有向我的本地package.json 添加任何内容。我实际上尝试在早期版本上安装这个包,它运行良好,所以我只是不明白出了什么问题。
不用说,这一切都相当令人沮丧。还有什么我没看到的吗?
【问题讨论】:
-
你解决了吗?
-
我不记得怎么做了,恐怕。但是下面的第二个答案可能会有所帮助?
标签: node.js github installation npm