0
点赞
收藏
分享

微信扫一扫

npm Error: EACCES: permission denied, scandir '/root/.npm/_logs'

q松_松q 2022-06-06 阅读 210

npm run build出现目前权限问题的解决方案

sudo chown -R $(whoami) ~/.npm

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
举报

相关推荐

0 条评论