阅读更多
安装NodeJS调试工具出现如下错误,提示的是访问权限有问题,那么直接在安装命令中添加
sudo就OK啦~sudo npm install -g node-inspector
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/node-inspector'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/node-inspector']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/node-inspector',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/node-inspector',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',