在搭建一个基于quasar的github拉下的项目时,用
quasar dev
一直提示:
Missing binding node_modules\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 14.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.
又是各种搜索,网上的各种办法都试过了(包含重新安装node-sass、修改源为淘宝等),没有解决,后面打开安装目录发现node_modules\node-sass\vendor\win32-x64-83目录下为空
然后就去github(https://github.com/sass/node-sass/releases/tag/v4.14.0)找到相应的文件,下载放到此目录,然后再执行:
npm rebuild node-sass
然后提示rebuilt dependencies successfully就成功了
项目也成功执行起来了