小编Her*_*nan的帖子

如何安装 vue cli?

我来这里是为了解决这个问题:我已经安装node (Ver. 12.13.1)在我的电脑上,然后我使用node -v看看是否node安装好,是的,是的。

后来,我使用npm install @vue/cli,它安装了框架,但是当 a do a 时vue --version抛出了一个错误。

我在 Visual Studio Code 的终端中尝试过,也抛出了错误。我尝试卸载并安装节点,然后再次执行之前的操作,但它不起作用,错误仍然存​​在

我能做什么?为什么会发生这种情况?

英文错误:

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
Run Code Online (Sandbox Code Playgroud)

代码照片: PS终端和 Visual Studio Code终端

node.js vue.js

6
推荐指数
1
解决办法
5018
查看次数

标签 统计

node.js ×1

vue.js ×1