vue启动 报错:Node Sass could not find a binding for your current environment: Windows 64*

本文介绍了在Vue项目启动时遇到的NodeSass编译错误,重点讲述了如何通过npm rebuild node-sass命令和npm update来修复Windows 64位环境下的绑定问题,以及可能需要的网络连接和环境更新。
摘要由CSDN通过智能技术生成

vue启动 报错:

Node Sass could not find a binding for your current environment: Windows 64


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: Missing binding C:\Users\Administrator\OneDrive\Develop\code\atguigu\vue\vue-admin-template-master\node_modules\_node-sass@6.0.1@node-sass\vendor\win32-x64-83\binding.node 
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x 
 
Found bindings for the following environments: 
- Windows 64-bit with Node.js 10.x 
 
This usually happens because your environment has changed since running `npm install`. 
Run `npm rebuild node-sass` to download the binding for your current environment. 
at module. exports (C:\Users\Administrator\OneDrive\Develop\code\atguigu\vue\vue-admin-template-master\node_modules\_node-sass@6.0.1@node-sass\lib\binding.js:15:13) 
at Object. <anonymous> (C:\Users\Administrator\OneDrive\Develop\code\atguigu\vue\vue-admin-template-master\node_modules\_node-sass@6.0.1@node-sass\lib\index.js:13:35) 
at Module. _compile (internal/modules/cjs/loader.js:1072:14) 
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) 
at Module. load (internal/modules/cjs/loader.js:937:32) 
at Function.Module. _load (internal/modules/cjs/loader.js:778:12) 
at Module. require (internal/modules/cjs/loader.js:961:19) 
at require (internal/modules/cjs/helpers.js:92:18) 
at Object. sassLoader (C:\Users\Administrator\OneDrive\Develop\code\atguigu\vue\vue-admin-template-master\node_modules\sass-loader\lib\loader.js:24:22)

**

解决方法:

**

报错主要信息:
Node Sass could not find a binding for your current environment: Windows 64

node sass 没找到你当前环境的绑定

重新构建Node-sass

  • 输入命令: npm rebuild node-sass

  • 然后在更新一下:npm update

期间需要连接github,可能由于网络原因造成错误

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值