无法加载文件 E:\nodejs\node_global\npm.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 1 + npm install + ~~~

发布时间 2023-11-02 09:56:33作者: 啄木鸟伍迪

npm install 报错

image

解决办法

  1. 打卡windos powershell 并且以管理员运行
    image

  2. 输入命令
    set-executionpolicy remotesigned
    Y
    image