当前位置:网站首页>Failed to execute NPM instruction, prompting ssh: Permission denied
Failed to execute NPM instruction, prompting ssh: Permission denied
2022-06-27 12:40:00 【LK mountain man under the moon】
problem : Console input npm Failed in correlation instruction , Tips
ssh: /usr/…/node_modules/… Permission denied
reason : The problem of relying on packages
Solution :
1) Refactoring dependencies Or download the dependency again
2) Add permissions
1 Refactoring dependencies
The refactoring method for dependencies is simple , Enter directly in the code warehouse directory npm rebuild , And then you can go ahead and npm Relevant instructions
npm rebuild
2 Add permissions
adopt chown Change the owner of the specified file to the specified user ,
-R Means to process all files in the specified directory and its subdirectories ,
whoami Indicates your own user name ,
The last item indicates the file directory that needs authorization
sudo chown -R $(whoami) /usr/local/lib
sudo chown -R $(whoami) /usr/local/bin
边栏推荐
- AI for Science: scientific research paradigm, open source platform and industrial form
- Time management understood after being urged to work at home
- nifi从入门到实战(保姆级教程)——身份认证
- Quanzhi A13 tossing memo
- What is the next step in the recommendation system? Alispacetime aggregates GNN, and the effect is to sling lightgcn!
- 自学ADT和OOP
- Win10彻底永久关闭自动更新的步骤
- What's the matter with Amazon's evaluation dropping and failing to stay? How to deal with it?
- Configuration of YML
- Building crud applications in golang
猜你喜欢
随机推荐
Self taught ADT and OOP
如何修改 node_modules 里的文件
AI for Science: scientific research paradigm, open source platform and industrial form
全志A13折腾备忘
Sword finger offer 04 Find in 2D array
Private dry goods sharing: how to implement platform in Enterprise Architecture
MySQL高阶语句(一)
Unzip log. GZ file
消息隊列的使用
数据库的复习总结
树莓派 3b+ 学习
PyCharm汉化
Nmcli team bridge basic configuration
Uniapp drop-down layer selection box effect demo (sorting)
log4j.properties的配置详解
Write it down once Net analysis of a property management background service stuck
master公式
Microservice splitting
消息队列的使用
Browser cookie to selenium cookie login