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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章