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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wxb880114/article/details/88918053
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

猜你喜欢

转载自blog.csdn.net/wxb880114/article/details/88918053