Vue.js官网
https://cn.vuejs.org/

Node.js官网
https://nodejs.org/zh-cn

查看当前的npm镜像

npm config get registry

'cnpm' 不是内部或外部命令,真正有效解决方法

npm install -g cnpm --registry=https://registry.npmmirror.com

参考1:https://blog.csdn.net/u011095110/article/details/85296607
参考2:https://www.cnblogs.com/ll666/p/18089299
参考3:https://blog.csdn.net/qq_50801874/article/details/142248672
参考4:https://blog.csdn.net/qq_45824905/article/details/130442691

vscode运行时报错,无法将“cnpm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称

配置系统环境变量:计算机->属性->高级系统配置->环境变量->PATH后面添加cnpm路径

参考5:https://blog.csdn.net/wyy7293/article/details/109812186

cnpm : 无法加载文件 node_global\cnpm.ps1,因为在此系统上禁止运行脚本

在powershell中执行

Start-Process powershell -Verb runAs

会提示授权,并以管理员身份运行powershell,继续重新执行

set-ExecutionPolicy RemoteSigned

选择 Y 执行成功

参考6:https://blog.csdn.net/mehnr/article/details/104497019

评论已关闭