我拆过的坑cycx

查询一下!

Error: Cannot find module 'webpack-cli/package.json'

webpack安装后需要安装webpack cli:


npm install -d webpack-cli

 

运行后报错:


Error: Cannot find module 'webpack-cli/package.json'

 

解决方案: 全局安装webpack-cli


npm i -g webpack-cli

 

成果解决:


webpack -v


webpack 5.27.2

webpack-cli 4.5.0


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.7.3

Copyright Your WebSite.Some Rights Reserved.