尝试安装chrome扩展程序

时间:2011-12-20 03:25:56

标签: google-chrome google-chrome-extension terminal

尝试让它发挥作用:http://addyosmani.com/blog/autosave-changes-chrome-dev-tools/

我之前从未使用过node.js或终端,并且真的可以使用help..THANKS !!!

我按照步骤操作,我收到此错误:/

    npm http GET https://registry.npmjs.org/autosave
    npm http 304 https://registry.npmjs.org/autosave
    npm ERR! Could not create /usr/local/lib/node_modules/___autosave.npm
    npm ERR! error installing autosave@0.1.0
    npm ERR! Error: EACCES, permission denied '/usr/local/lib/node_modules/___autosave.npm'
    npm ERR! Report this *entire* log at:
    npm ERR!     <http://github.com/isaacs/npm/issues>
    npm ERR! or email it to:
    npm ERR!     <npm-@googlegroups.com>
    npm ERR! 
    npm ERR! System Darwin 11.1.0
    npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "autosave"
    npm ERR! cwd /Users/kangaroobin
    npm ERR! node -v v0.6.6
    npm ERR! npm -v 1.1.0-beta-4
    npm ERR! path /usr/local/lib/node_modules/___autosave.npm
    npm ERR! code EACCES
    npm ERR! message EACCES, permission denied '/usr/local/lib/node_modules/___autosave.npm'
    npm ERR! 
    npm ERR! Additional logging details can be found in:
    npm ERR!     /Users/kangaroobin/npm-debug.log
    npm not ok

这是我的联盟,我非常感谢你的帮助,我需要一些非常详细的步骤来解决我需要做的事情

2 个答案:

答案 0 :(得分:1)

运行此:sudo npm install -g autosave。我遇到了和你一样的问题,试过我的解决方案,然后就可以了!

答案 1 :(得分:0)

您可能应该以{{1​​}}用户身份重新尝试npm install命令;将root添加到您的命令中,然后重试。

默认情况下,您的常规用户帐户无权修改sudo中的内容。配置权限以尝试允许您的常规用户帐户修改/usr/local中的内容可能会出错。

相关问题