下载到别人的前台代码后;

第一步:安装依赖

npm install
//or # 建议不要用cnpm  安装有各种诡异的bug 可以通过如下操作解决npm速度慢的问题
    npm install --registry=https://registry.npm.taobao.org

第二步:开启服务

这时候就会报错了,报错信息如下图:

vue跑项目npm run dev 时报错cannot GET /;node-sass安装失败问题


页面显示:

cannot GET /


vue跑项目npm run dev 时报错cannot GET /;node-sass安装失败问题

输出了一下版本号,显示出来了,但是重新启动后还是不管用,原因是使用npm,node-sass被国内的网墙掉了,

第三步:解决方法

使用:

cnpm install node-sass

成功截图:

vue跑项目npm run dev 时报错cannot GET /;node-sass安装失败问题


如果还是不能解决,参考以下大佬提供的解决方案:

点击打开链接

点击打开链接

点击打开链接

点击打开链接

点击打开链接

群内大佬的方法:

vue跑项目npm run dev 时报错cannot GET /;node-sass安装失败问题

vue跑项目npm run dev 时报错cannot GET /;node-sass安装失败问题




相关文章:

  • 2021-09-14
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2022-01-16
  • 2021-06-01
  • 2021-04-08
  • 2021-08-24
相关资源
相似解决方案