【发布时间】:2020-04-03 03:46:33
【问题描述】:
我是来解决这个问题的:我已经在我的电脑上安装了node (Ver. 12.13.1),然后我用node -v查看node是否安装好,是的,是的。
后来,我使用npm install @vue/cli,它会安装框架,但是当我执行vue --version 时会抛出一个错误。
我在 Visual Studio 代码的终端中尝试过,也给我抛出了错误。我尝试卸载并安装节点,然后再次执行之前的操作,但它不起作用,错误仍然存在
我能做什么?为什么会这样?
英文错误:
Cannot load file C:\Users\halva\AppData\Roaming\npm\vue.ps1.
The file C:\Users\halva\AppData\Roaming\npm\vue.ps1 is not digitally signed.
You cannot run this script on the current system.
For more information about the execution of scripts and execution policy settings,
see about_Execution_Policies at https: /go.microsoft.com/fwlink/?LinkID = 135170
【问题讨论】:
-
这看起来像是
PowerShell的问题... 尝试先运行它(如果您已经阅读了错误消息并离开了to the link they provide,它会为您提供您正在寻找的所有答案为)Set-ExecutionPolicy -ExecutionPolicy Bypass