gpt4 book ai didi

angular - 当我尝试安装 angular 时权限被拒绝

转载 作者:行者123 更新时间:2023-12-04 04:19:31 24 4
gpt4 key购买 nike

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 .

或者

只需按照 中的步骤操作即可here .

关于angular - 当我尝试安装 angular 时权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59740026/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com