npm : 无法加载文件 C:\nvm4w\nodejs\npm.ps1,因为在此系统上
禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/
fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 1
+ npm run dev
+ ~~~
+ CategoryInfo : SecurityError: (:) [],PSSecu
rityException
+ FullyQualifiedErrorId : UnauthorizedAccess
1.使用命令 get-ExecutionPolicy查看 显示Restricted:限制 所以要给权限
- 使用命令:
Set-ExecutionPolicy -Scope CurrentUser - 输入: RemoteSigned 具体如下图所示,成功解决。