IT源码网

npm install 权限的问题讲解

lxf 2021年02月16日 编程语言 158 0

用ctrl+r切换到对象的目录,以管理圆的身份执行

 

  1. npm cache clean first.

  2. If that doesn’t fix things, take a look in %APPDATA%\npm-cache, or if you’re using PowerShell, $env:APPDATA\npm-cache.

After cleaning the cache, you may still be left with remnants. Manually remove everything in that directory, and try again. This has always fixed things for me.

As @Crazzymatt was mentioning, as of MPM 5 version, we need to use npm cache verify instead of npm cache clean. Or else you will get an error as preceding.

 

https://stackoverflow.com/questions/22325031/npm-please-try-using-this-command-again-as-root-administrator

发布评论

分享到:

IT源码网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!

typescript的入门讲解
你是第一个吃螃蟹的人
发表评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。