在用npm install下载包时报错

npm下载包时,报错It is likely you do not have the permissions to access this file as the current user没有权限解决

解决方法:

第一步:在控制台输入

ls -al查看权限

npm下载包时,报错It is likely you do not have the permissions to access this file as the current user没有权限解决

当前不具备node_moduls的写权限

更改写入权限

在控制台输入  sudo chown -R gx node_modules

之后即可npm i去下载包了

相关文章:

  • 2021-11-29
  • 2021-09-27
  • 2021-09-09
  • 2021-09-15
  • 2021-04-03
  • 2021-06-10
  • 2022-12-23
猜你喜欢
  • 2021-11-25
  • 2021-09-27
  • 2022-12-23
  • 2021-09-25
  • 2021-11-06
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案