当前位置:网站首页>Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which

Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which

2022-07-07 01:17:00 yunchong_ zhao

This seems to be yours npm Except for the problem
I use 17.* Version installed vite When Dependency has been a problem It can't be installed
I also try to understand npm Cache but not
But the error report also tells you How to deal with
Because I installed nvm Various node The version can be switched randomly
 Insert picture description here

This is the one that runs sudo chown -R 501:20 “/Users/yunchongzhao/.npm”
Note that each computer may be different Don't take the one I wrote above and run it directly ,
Look at the error report on your computer

It was finally solved It's working
Pay attention to me . Continuously update front-end knowledge

原网站

版权声明
本文为[yunchong_ zhao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207061729348434.html