ERROR in ./src/styles.scss .. Module build failed: Error: Cannot find module 'node-sass'

ERROR in ./src/styles/Scrollbars.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src??ref--6-2!./node_modules/sass-loader/lib/loader.js!./src/styles/Scrollbars.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: ENOENT: no such file or directory, scandir '/Users/waterw/git/2019/ipfs/orbit-web/node_modules/node-sass/vendor'

https://stackoverflow.com/questions/51850093/error-in-src-styles-scss-module-build-failed-error-cannot-find-module-no

 


As the error says Error: Cannot find module 'node-sass'. To solve this you have to install node-sass using following command:

npm install node-sass

 

你可能感兴趣的:(ERROR in ./src/styles.scss .. Module build failed: Error: Cannot find module 'node-sass')