【问题标题】:Install brunch on Mac在 Mac 上安装早午餐
【发布时间】:2017-01-04 20:23:06
【问题描述】:

我正在尝试在我的 Macbook 上安装 brunch。我输入

npm install -g brunch

它最终输出

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "brunch"
npm ERR! node v6.4.0
npm ERR! npm  v3.10.3
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!     at Error (native)
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!     at Error (native)
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/aryaman.arora/npm-debug.log

我该怎么办?

【问题讨论】:

    标签: macos npm brunch


    【解决方案1】:

    以超级用户权限运行命令:

    sudo npm install -g brunch

    注意:这需要root密码。

    或者您可以使用 this guide 修复 npm 的权限。

    【讨论】:

    • 我已经试过了,我也试过用root访问。我去看看指南。
    猜你喜欢
    • 2013-06-29
    • 2018-08-27
    • 1970-01-01
    • 1970-01-01
    • 2016-01-19
    • 1970-01-01
    • 2019-01-04
    • 2018-05-07
    • 2015-09-03
    相关资源
    最近更新 更多