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 问题?
你可以找到这个问题的答案here https://stackoverflow.com/questions/42042300/npm-throws-eacces-error-on-installation-of-angular-cli/42042619#42042619.
Or
只需按照以下步骤操作即可here https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)