Hope to help you, afraid you worry!
Look at the resolution step, then look at the description
NPM RM node-sassnpm Install Node-sass
Reinstall the Node-sass module
/*************************************************************************************/
When I build a new front-end development framework, using Gulp-sass to compile scss files, Gulpfile is written in this way;
var gulp = require (' Gulp '); var sass = require (' Gulp-sass '); Gulp.task (function () { return GULP.SRC (' css/*.scss ', opt) . Pipe (Sass (). On (' error ', Sass.logerror)) . Pipe (Gulp.dest (Dist ));});
Error after running Gulp SASS command
F:\study\studygulp>gulp Sass (node:8488) fs:re-evaluating native module sources is not supported. If you is using the GRACEFUL-FS module, please update it to a more recent version.module.js:568 return Process.dlopen (module, path._makelong (filename)); ^error:%1 is not a valid Win32 application.\\?\f:\study\studygulp\node_modules\node-sass\vendor\win32-x64-48\ Binding.node at Error (native) at object.module._extensions. Node (module.js:568:18) at module.load (module.js:458:32) at trymoduleload (module.js:417:12) at Function.module._load (Module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js : 20:19) at object.<anonymous> (f:\study\studygulp\node_modules\node-sass\lib\index.js:24:15) at Module._compile (module.js:541:32) at object.module._extensions. JS (module.js:550:10)
%1 is not a valid WIN32 application
Inexplicable error, the code does not have any 1% ah;
Finally found the answer link in GitHub issues https://github.com/sass/node-sass/issues/468
The steps to resolve are as follows
NPM RM node-sassnpm Install Node-sass
Reinstall the Node-sass module
Then compile the perfect run, over
%1 is not a valid WIN32 application