Vue-various problem handling

vue : Could not load file E:\nodejs\node_global\npm\vue.ps1 because running scripts is prohibited on this system.

Windows PowerShell
版权所有 (C) Microsoft Corporation。保留所有权利。

尝试新的跨平台 PowerShell https://aka.ms/pscore6

PS C:\Users\Administrator>  Get-ExecutionPolicy
Restricted
PS C:\Users\Administrator> Set-ExecutionPolicy -Scope CurrentUser

位于命令管道位置 1 的 cmdlet Set-ExecutionPolicy
请为以下参数提供值:
ExecutionPolicy: RemoteSigned

执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y] 是(Y)  [A] 全是(A)  [N] 否(N)  [L] 全否(L)  [S] 暂停(S)  [?] 帮助 (默认值为“N”): y
PS C:\Users\Administrator>

 

vue is not recognized as an internal or external command, operable program or batch file.

The following error solution appears:

1. Enter the command npm config list 

 2. View the location of npm

 3. Find the folder and click the vue.cmd file to copy the address of the file

 4. Find my computer (this computer) and right click ------- click properties to jump to the following interface --------- click advanced system settings ------- in the pop-up box Click on Environment Variables

 5. Jump to the following page, double-click to open Path

 6. Find the input box corresponding to the variable value in the pop-up box-------paste the copied address behind the text, as shown in the figure below

Note: Be sure to add a semicolon (;) in English after the original text and then paste the address

 7. Execute the command vue -V to view the version

Guess you like

Origin blog.csdn.net/weixin_66556453/article/details/124892465