cnpm : 无法加载文件 D:\nodejs\node_global\cnpm.ps1,因为在此系统上禁止运行脚本
cnpm : 无法加载文件 D:\nodejs\node_global\cnpm.ps1,因为在此系统上禁止运行脚本
- 打开windows powershell 以管理员身份运行
- 执行以下命令
set-ExecutionPolicy RemoteSigned
- 选择 Y
- 再继续执行 cnpm,如下图
- 完美解决
cnpm : 无法加载文件 D:\nodejs\node_global\cnpm.ps1,因为在此系统上禁止运行脚本
set-ExecutionPolicy RemoteSigned