npm配置国内源,出现以下内容是什么原因呢?
来源:4-3 NPM配置国内源
晓媛Sharon
2017-05-29
npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cnpm" "--registry=https://registry.npm.taobao.org"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
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! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
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/sharon/.npm/_logs/2017-05-29T11_20_15_833Z-debug.log
3回答
-
命令行没有以管理员权限执行,请认真看课程视频。
052017-05-31 -
晓媛Sharon
提问者
2017-05-31
终于搞定了,谢谢老师耐心解答。
00 -
Parry
2017-05-30
你的机器密码我能知道?
00
相似问题