欢迎来到 A_Dull_Rabbit 的博客

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

image

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

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

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

管理员身份运行

image

允许执行脚本

image

image

posted on 2021-03-28 09:41  A_Dull_Rabbit  阅读(1395)  评论(0编辑  收藏  举报

导航