![](/img/trans.png)
[英]npm install always gives 'Your cache folder contains root-owned files, due to a bug in npm previous versions of npm which has since been addressed.'
[英]Error "Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed"
我最近安装了 Ubuntu 18.04 稳定版。 我安装了 Node.js (v12.16.1) 和 npm (v6.13.4) 的最新稳定版本。
当我尝试使用“npm i create-react-app”安装“create-react-app”时,出现错误。
Your cache folder contains root-owned files, due to a bug in previous versions of npm which has since been addressed
我试过sudo chown -R 1000:1000 "/home/shubham/.npm"
,但仍然得到同样的错误。
请求人们帮助我。
提前致谢 !!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.