0
当我试图从NPM与npm install memwatch
安装MEMWATCH我收到这些错误就彻底失败前:节点GYP 0.12.0未发现
gyp WARN EACCES user does not have permission to access the dev dir "~/.node-gyp/0.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/folders/bf/_rxhpvq936b1vxf9ylygj86r0000gn/T/.node-gyp"
和
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/cmlewis95/Dropbox/Programming/Projects/Markdown/node_modules/memwatch
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "memwatch"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
当我去它表示它无权访问的位置,错误中列出的版本号不是目录。我只有一个0.10.13的文件夹。我认为我只需要更新node-gyp,但是我发现的所有文档都没有解决问题。谢谢。
尝试过,并且没有成功。 – cmlewis95 2015-04-03 05:54:21
你确定这些目录是可写的吗?暂时测试为'sudo chmod 777/directory' – 2015-04-03 09:48:13