npm run watch 报错:Windows 64-bit with Unsupported runtime (83) 作者: Chuwen 时间: 2021-03-19 分类: Node.js ## Node.js 和 npm 版本信息 ```log C:\Users\hello>node -v v14.16.0 C:\Users\hello>npm -v 6.14.11 ``` ## 报错信息 主要的报错信息:`Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83)` ```log ERROR in ./node_modules/css-loader??ref--8-2!./node_modules/postcss-loader/lib??postcss!./node_modules/resolve-url-loader??ref--8-4!./node_modules/sass-loader/lib/loader.js??ref--8-5!./resources/assets/sass/app.scss Module build failed: 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.12.0 at module.exports (E:\xxxx\node_modules\node-sass\lib\binding.js:13:13) at Object. (E:\xxxx\node_modules\node-sass\lib\index.js:14:35) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (E:\xxxx\node_modules\sass-loader\lib\loader.js:3:14) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:18:17) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at runLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:365:2) @ ./resources/assets/sass/app.scss 4:14-266 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ERROR in ./resources/assets/sass/app.scss Module build failed: ModuleBuildError: Module build failed: 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.12.0 at module.exports (E:\xxxx\node_modules\node-sass\lib\binding.js:13:13) at Object. (E:\xxxx\node_modules\node-sass\lib\index.js:14:35) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (E:\xxxx\node_modules\sass-loader\lib\loader.js:3:14) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:18:17) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at runLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:365:2) at E:\xxxx\node_modules\webpack\lib\NormalModule.js:195:19 at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:172:11 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:32:11) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:165:10) at E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:176:18 at loadLoader (E:\xxxx\node_modules\loader-runner\lib\loadLoader.js:47:3) at iteratePitchingLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:169:2) at runLoaders (E:\xxxx\node_modules\loader-runner\lib\LoaderRunner.js:365:2) at NormalModule.doBuild (E:\xxxx\node_modules\webpack\lib\NormalModule.js:182:3) at NormalModule.build (E:\xxxx\node_modules\webpack\lib\NormalModule.js:275:15) at Compilation.buildModule (E:\xxxx\node_modules\webpack\lib\Compilation.js:157:10) at E:\xxxx\node_modules\webpack\lib\Compilation.js:460:10 at E:\xxxx\node_modules\webpack\lib\NormalModuleFactory.js:243:5 at E:\xxxx\node_modules\webpack\lib\NormalModuleFactory.js:94:13 at E:\xxxx\node_modules\tapable\lib\Tapable.js:268:11 at NormalModuleFactory. (E:\xxxx\node_modules\webpack\lib\CompatibilityPlugin.js:52:5) at NormalModuleFactory.applyPluginsAsyncWaterfall (E:\xxxx\node_modules\tapable\lib\Tapable.js:272:13) at E:\xxxx\node_modules\webpack\lib\NormalModuleFactory.js:69:10 at E:\xxxx\node_modules\webpack\lib\NormalModuleFactory.js:196:7 at processTicksAndRejections (internal/process/task_queues.js:75:11) @ ./resources/assets/sass/app.scss @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss ``` ## 解决方案 > 参考:https://github.com/microsoft/PartsUnlimited/issues/134#issuecomment-361014259 重新构建 `node-sass` 包即可解决: > npm rebuild 命令参考:https://www.npmjs.cn/cli/rebuild/ ```log npm rebuild node-sass ``` 标签: Node.js, npm