vue问题汇聚

1、安装node出现警告 npm WARN config global --global, --local are deprecated. Use --location=global instead
https://blog.csdn.net/chuqiuk/article/details/125226956

 

2、npm install 报错:Cannot read properties of null (reading 'pickAlgorithm')

     解决方案:https://blog.csdn.net/yyzx_yyzx/article/details/125716768

 

3、Cannot find module  找不到项目中node_modules 里面的个别文件(依赖包没拉取到,重新拉取)

 解决方案:1、查看镜像:npm get registry(https://developer.aliyun.com/mirror/NPM?spm=a2c6h.13651102.0.0.30da1b112jRKaF

                   2、设置镜像:npm set registry http://registry.npmmirror.com
                   3、删除项目下的node_modules
                   4、清空npm本地缓存:npm cache clean --force //用于对付使用相同版本号发布新版本代码的人
                   5、重新安装依赖包: npm install
                   6、查看项目中node_modules 里面的缺失的文件是否拉下来。
 
4、yarn -v 报错 : 无法加载文件 C:\Program Files\nodejs\yarn.ps1,因为在此系统上禁止运行脚本。
 
 
5、vue -V  报错:无法将“vue”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次
解决方案:
                yar 安装的vue:https://blog.csdn.net/xiaohuli_hyr/article/details/108101417
                npm安装的vue:https://blog.csdn.net/u010459196/article/details/124474092

 

posted on 2022-08-03 14:06  zg_heng  阅读(45)  评论(0编辑  收藏  举报

导航