【发布时间】:2015-02-13 01:02:36
【问题描述】:
我正在尝试设置一个 chrome 扩展程序,该扩展程序将使用检查元素功能自动保存我对我的网站所做的更改。这个想法是,您将能够对网站进行实时更改,而无需返回 ide 来保存更改并重新上传等所有内容。该扩展名为 DevTools Autosave。我一直按照本网站的说明进行操作。我正在尝试在 Mac 上安装它。
我已经安装了 node.js 和扩展。当我到达说明中讨论在终端中运行哪些命令的部分时,我尝试了在“npm install -g autosave”命令前面使用和不使用“sudo”,但我总是得到这个错误:
Error: EACCES, permission denied
at Function.startup.resolveArgv0 (node.js:815:23)
at startup (node.js:58:13)
at node.js:906:3
npm ERR! autosave@1.0.3 install: `node ./scripts/install.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the autosave@1.0.3 install script.
npm ERR! This is most likely a problem with the autosave package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls autosave
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "autosave"
npm ERR! cwd /Users/Brent
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
有人知道我该如何解决这个问题吗?我找不到任何遇到此问题的人,我现在已经在几个不同的论坛上,但找不到解决方案。提前致谢。
【问题讨论】:
标签: node.js google-chrome-extension terminal google-chrome-devtools