nrm报错
Last login: Wed Feb 22 07:14:26 on ttys000
bujing@bojingdeMacBook-Pro ~ % node -v
v18.14.2
bujing@bojingdeMacBook-Pro ~ % npm -v
9.5.0
bujing@bojingdeMacBook-Pro ~ % npm install nrm -g
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/nrm
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nrm'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/nrm'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/nrm'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bujing/.npm/_logs/2023-02-21T23_32_27_384Z-debug-0.log
bujing@bojingdeMacBook-Pro ~ %
安装nrm出现如上报错,是什么原因,怎么解决
正在回答 回答被采纳积分+1
在前面加了sodo 之后,提示要输入密码,这个密码是什么?是AppleID吗?
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星