第一种方法 :
- 1.删除 node_modules 文件夹;
- 2.删除 package-lock.json 文件;
- 3.在项目所在目录下用命令 npm clean cache -f 清除npm 缓存;
- 4.运行 npm install --registry=https://registry.npm.taobao.org ,重新安装依赖;
- 5.运行 npm run dev 运行项目
第二种方法 :
- 1.执行 npm uninstall --save node-sass 命令;
- 2.执行 npm install --save node-sass 命令;
- 3.运行 npm run dev 运行项目.