Vue 无法加载文件 X:\Xxx\XXX\node-v12.16.3-x64\node_global\vue.ps1,因为在此系统上禁止运行脚

在用脚手架4搭建vue项目时,提示:无法加载文件 X:\xx\xx\xx\xx\node_global\vue.ps1,因为在此系统禁止运行脚本

这是你笔记本禁止运行脚本,解决办法

1.管理员身份打开 powershell
2.输入set-ExecutionPolicy RemoteSigned

vue : 无法加载文件 X:\Xxx\XXX\node-v12.16.3-x64\node_global\vue.ps1,因为在此系统禁止运行脚本

3.选择Y 或者A ,就好了
也可以参考官方给的网址,解决方法一样
https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2021-08-07
  • 2021-05-05
  • 2021-06-17
  • 2021-04-19
  • 2021-04-02
猜你喜欢
  • 2021-12-03
  • 2021-10-02
  • 2021-11-13
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案