MacMini-J:node_modules MacMini_J$ npm install -g iproxy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/iproxy
npm ERR! path /usr/local/lib/node_modules/iproxy
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/iproxy'
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/iproxy'
npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/iproxy\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/iproxy' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

MacMini-J:node_modules MacMini_J$ sudo npm install -g iproxy

iproxy@0.0.4 updated 1 package in 2.12s
MacMini-J:node_modules MacMini_J$ which iproxy

MacMini-J:node_modules MacMini_J$ iproxy
-bash: iproxy: command not found


↙↙↙阅读原文可查看相关链接,并与作者交流