用ctrl+r切换到对象的目录,以管理圆的身份执行
-
npm cache clean
first. -
If that doesn’t fix things, take a look in
%APPDATA% pm-cache
, or if you’re using PowerShell,$env:APPDATA pm-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