webpack安装后需要安装webpack cli:
npm install -d webpack-cli
1
运行后报错:
Error: Cannot find module 'webpack-cli/package.json'
1
解决方案: 全局安装webpack-cli
npm i -g webpack-cli
1
成果解决:
webpack -v
webpack 5.27.2
webpack-cli 4.5.0
————————————————
原文链接:https://blog.csdn.net/weixin_51370367/article/details/115164263
标签:cli,package,webpack,module,json,Cannot,find From: https://www.cnblogs.com/im18620660608/p/17175119.html