npm run dev 运行项目报错Failed to resolve loader: cache-loader You may need to install it. Error fro
npmrundev运行项目报错Failedtoresolveloader:cache-loaderYoumayneedtoinstallit.Errorfro
·

npm run dev 运行项目报错Failed to resolve loader: cache-loader You may need to install it. Error fro
查找项目:并未使用 cache-loader
这可能是因为你安装的node版本中自带的npm版本过高导致的,使用如下命令将npm版本降低即可
npm install npm@6.14.8 -g
或者
npm install npm@6.14.8 -location=global
此方法并没有解决我的问题,
然后尝试运行 安装命令,问题解决
运行npm install cache-loader --save-dev 即可
我也很疑惑为撒项目中没有使用到 cache-loader ,但是会报这个错误,并且安装了这个依赖包就好了呢?,欢迎大家一起交流哇
更多推荐




所有评论(0)