Module build failed (from ./node_modules/sass-loader/lib/loader.js): Cannot find module ‘node-sass‘(
Posted 最小的帆也能远航
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Module build failed (from ./node_modules/sass-loader/lib/loader.js): Cannot find module ‘node-sass‘(相关的知识,希望对你有一定的参考价值。
网上说的五花八门,我都试了一遍,没什么作用。
我的是node版本太低,原来是10.x,后来仔细看了报错信息,果断将node版本切换到12.x。
再重新安装node-sass
npm install node-sass
搞定!!!
以上是关于Module build failed (from ./node_modules/sass-loader/lib/loader.js): Cannot find module ‘node-sass‘(的主要内容,如果未能解决你的问题,请参考以下文章
Module build failed (from ./node_modules/source-map-loader/dist/cjs.js): TypeError: this.getOptions
Module build failed (from ./node_modules/source-map-loader/dist/cjs.js): TypeError: this.getOptions
Module build failed (from ./node_modules/sass-loader/lib/loader.js): Cannot find module ‘node-sass‘(
Module build failed (from ./node_modules/sass-loader/lib/loader.js): Cannot find module ‘node-sass‘(
webpack报错:Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Cannot find mo
Module build failed (from ./node_modules/_sass-loader@12.3.0@sass-loader/dist/cjs.js): TypeError: