Npm直接从Github安装错误:ENOENT

时间:2014-07-07 07:23:56

标签: github npm

我正在运行build-nodejs-npm-installation-package-scratch的示例。而不是上传到npm存储库我把它放在Github上并尝试通过npm下载它。我运行npm install git+https://github.com/t2wu/replaceme.git并获得以下内容:

npm ERR! Error: ENOENT, chmod '/private/tmp/node_modules/replaceme_tim/replaceme.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.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "git+https://github.com/t2wu/replaceme.git"
npm ERR! cwd /private/tmp
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /private/tmp/node_modules/replaceme_tim/replaceme.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /private/tmp/npm-debug.log
npm ERR! not ok code 0

我有一个package.json,我无法弄清楚出了什么问题。

编辑:我可以安装Express OK,但我无法安装练习模块

1 个答案:

答案 0 :(得分:0)

这是因为在npm工作时缺少权限或未链接的文件。这个topicc也出现在github,here

尝试使用admin perms运行。