Node Sassは、現在の環境のバインディングを見つけることができませんでした:Node.js8.xを使用したWindows64ビット



Node Sass Could Not Find Binding



1.統合スキャフォールディングを使用すると、次のようなエラーメッセージが表示されます。

ERROR in ./app/containers/App/SiderMenu/SiderPanel/style.scss (./node_modules/css-loader!./node_modules/postcss-loader/src!./node_modules/sass-loader/lib/loader.js!./app/containers/App/SiderMenu/SiderPanel/style.scss) Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: Missing binding E:hysight ypescript-rc-ssr-cli ode_modules ode-sassvendorwin32-x64-57inding.node Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x Found bindings for the following environments: - Windows 64-bit with Node.js 8.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. at module.exports (E:hysight ypescript-rc-ssr-cli ode_modules ode-sasslibinding.js:15:13) at Object. (E:hysight ypescript-rc-ssr-cli ode_modules ode-sasslibindex.js:14:35) at Module._compile (module.js:653:30) at Module._extensions..js (module.js:664:10) at Object.require.extensions.(anonymous function) [as .js] (E:hysight ypescript-rc-ssr-cli ode_modulesabel-registerlib ode.js:152:7) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) @ ./app/containers/App/SiderMenu/SiderPanel/style.scss 2:14-197 21:1-42:3 22:19-202 @ ./app/containers/App/SiderMenu/SiderPanel/index.tsx @ ./app/containers/App/SiderMenu/index.tsx @ ./app/containers/App/index.tsx @ ./app/config/routes.config.ts @ ./app/views/App/index.tsx @ ./app/index.tsx @ multi ./app/index.tsx webpack-hot-middleware/client?path=/fe/__webpack_hmr&reload=true

理由:プロンプトメッセージは、node-sassバージョンがローカルシステムおよびノー​​ドバージョンと競合していることを示しています



解決策:npm再構築ノード-sassとnpm更新を実行します