Error: EACCES: permission denied, access \'/Users/gs/.npm-global/lib/node_modules/@angular/cli\'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path:
npm ERR! '/Users/gs/.npm-global/lib/node_modules/@angular/cli' }
The operation was rejected by your operating system.
It is likely you do not have the permissions to access this file as the current user
if you believe this might be a permissions issue, please double-check the
permissions of the file and its containing directories, or try running
the command again as root/Administrator (though this is not recommended).
有趣的是,当我尝试下载它的 sudo 版本时,终端无法识别 ng
。
我的节点是10.16.3,我的npm是6.9.0
这是文件问题还是我的 Mac 问题?
最佳答案
关于angular - 当我尝试安装 Angular 时权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59740026/