管理员身份打开PowerShell先执行:Start-Process powershell -Verb runAs再执行:set-ExecutionPolicy RemoteSigned 选择Y我们就可以继续使用npm了