npm run dev报错node sass does not yet

Failed to compile.  ./src/styles/index.scss (./node_modules/css-loader??ref--11-1!./node_modules/postcss-loader/lib??ref--11-2!./node_modules/sass-loader/lib/loader.js??ref--11-3!./src/styles/index.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83) For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.11.0     at module.exports (F:\Visual Studio Code\project\vue-admin-template-master\node_modules\node-sass\lib\binding.js:13:13)     at Object.<anonymous> (F:\Visual Studio Code\project\vue-admin-template-master\node_modules\node-sass\lib\index.js:14:35)     at Module._compile (internal/modules/cjs/loader.js:1063:30)     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)     at Module.load (internal/modules/cjs/loader.js:928:32)     at Function.Module._load (internal/modules/cjs/loader.js:769:14)     at Module.require (internal/modules/cjs/loader.js:952:19)     at require (internal/modules/cjs/helpers.js:88:18)     at Object.sassLoader (F:\Visual Studio Code\project\vue-admin-template-master\node_modules\sass-loader\lib\loader.js:24:22)

首先在项目目录下依次安装以下文件:
npm install node-sass
npm i node-sass -D

我的到这一步就ok了,记录下。。。。
如果继续报错,会提醒安装element-ui就可以运行项目了,我们继续在项目目录下安装它就好了:
npm install --save element-ui
然后运行项目就OK啦,终于不报错啦!
————————————————
版权声明:本文为CSDN博主「Outsider1213」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_42173730/article/details/121800037

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值