Error: Node Sass does not yet support your current environment: Windows 64-bit
错误日志:
throw new Error(errors.unsupportedEnvironment())
C:\Users\72074530\Desktop\runhealth\node_modules\node-sass\lib\binding.js:13 throw new Error(errors.unsupportedEnvironment()); ^ 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.13.0 at module.exports (C:\Users\72074530\Desktop\runhealth\node_modules\node-sass\lib\binding.js:13:13) at Object.<anonymous> (C:\Users\72074530\Desktop\runhealth\node_modules\node-sass\lib\index.js:14:35) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) at Module.require (internal/modules/cjs/loader.js:1089:19) at require (internal/modules/cjs/helpers.js:73:18) at Object.<anonymous> (C:\Users\72074530\Desktop\runhealth\node_modules\gulp-sass\index.js:162:21) at Module._compile (internal/modules/cjs/loader.js:1200:30) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! runshare@0.1.0 public: `gulp && rm -rf ./public/rev` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the runshare@0.1.0 public script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\72074530\AppData\Roaming\npm-cache\_logs\2020-06-23T08_51_01_590Z-debug.log
解决办法:
1. 删除老的node_modules;
2. set SASS_BINARY_PATH=D:\win32-x64-64_binding.node
3. cnpm install
原理可以查看这篇文章:https://blog.csdn.net/qwe1314225/article/details/104749866/