npm\cnpm.ps1,因为在此系统上禁止运行脚本。

以管理员身份运行
在powershell中执行
Start-Process powershell -Verb runAs
会以管理员身份运行powershell

继续重新执行
set-ExecutionPolicy RemoteSigned
选择 Y

如下图操作完即可解决,在Vscode下继续命令cnpm install xxx --save可正常安装插件...

管理员身份运行

npm\cnpm.ps1,因为在此系统上禁止运行脚本。

允许执行脚本

npm\cnpm.ps1,因为在此系统上禁止运行脚本。

npm\cnpm.ps1,因为在此系统上禁止运行脚本。

相关文章:

  • 2021-09-09
  • 2021-08-30
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案