npm ERR cb() never called npm ERR While resolving: sass-loader
作者:互联网
npm ERR! cb() never called!
1 报错信息
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Program Files\nodejs\xxx-debug.log
2 解决办法
1、清除npm缓存
npm cache clean -f
2、安装最新版Node helper
npm install -g n --force
3、安装最新稳定版Node
linux系统
n stable
windows系统
去nodeJS官网下载安装最新版
npm ERR! While resolving: sass-loader@10.2.0 npm ERR! Found: node-sass@7.0.1
1 报错信息
npm ERR! While resolving: sass-loader@10.2.0 npm ERR! Found: node-sass@7.0.1
2 原因分析
sass-loader与node-sass版本不对应,应降低sass-loader版本。
2 解决方案
1、单独安装node-sass
npm install --unsafe-perm node-sass
2、安装指定版本sass-loader
npm install sass-loader@7.3.1
标签:npm,node,ERR,sass,cb,loader 来源: https://blog.csdn.net/weixin_38625805/article/details/122702888