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

前端代码编译

npm run dev

报错如下

Node Sass could not find a binding for your current environment::Windows 64-bit with Node.js 4.x Found bindings for the following environment:

查阅相关资源,如此这般便可解决

npm rebuild node-sass

重新编译后的样子如下

[email protected] install D:\laragon323\www\lar56\node_modules\node-sass
node scripts/install.js
npm run development
@ development D:\laragon323\www\lar56
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js –progress –hide-modules –config=node_modules/laravel-mix/setup/webpack.config.js
95% emitting
DONE Compiled successfully in 10203ms 18:23:41
Asset Size Chunks Chunk Names
/js/app.js 1.38 MB 0 [emitted] [big] /js/app
/css/app.css 196 kB 0, 0 [emitted] /js/app, /js/app

ok!

猜你喜欢

转载自blog.csdn.net/u011584949/article/details/80571273