在OSX El Capitan上安装-g node-gyp时出错

时间:2016-11-24 14:43:48

标签: javascript macos terminal arduino johnny-five

我试图通过JS安装johnny-five来运行Arduino Uno。我一直卡在npm install -g node-gyp上。这似乎是一个常见的问题,但我发现的任何线程都没有证明是有用的。

我对这一切都很陌生,所以请过度解释。

我的大多数错误似乎都是权限错误。作为参考,我正在运行Xcode 8.1和Node.js 6.9.1。和Python 2.7。

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "node-gyp"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
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/juliefunk/libtool-2.4.2/npm-debug.log

0 个答案:

没有答案