彭煜

导航

nuxt build 报错Module not found: Error: Can't resolve 'sass-loader'

 

npm i  /  npm run dev  时报错

Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version.
    at Object.sassLoader (C:\Users\12915\Desktop\qy\medSurgPms\node_modules\sass-loader\lib\loader.js:31:19)

  

 

解决办法:

安装两个东西:

npm install sass-loader -D
npm install node-sass -D

npm rebuild node-sass




参考链接: http://www.manongjc.com/detail/14-vysyvuuztezseyr.html
      https://www.zengjunpeng.com/?id=208

posted on 2020-06-12 00:47  彭煜ฅ˙-˙ฅ  阅读(1333)  评论(0编辑  收藏  举报