npm运行vue项目出现禁止运行脚本

问题:

vue : 无法加载文件 F:\nodejs\node_global\vue.ps1,因为在此系统上禁止运行脚本。

打开PowerShell

查看策略 Get-ExecutionPolicy  返回  Restricted

修改策略 Set-ExecutionPolicy -Scope CurrentUser 回车 输入 RemoteSigned  回车 输入 Y

重新查询 Get-ExecutionPolicy  返回  RemoteSigned

猜你喜欢

转载自blog.csdn.net/weirdo_world/article/details/132794118