Error: Cannot find module ‘webpack-cli/package.json‘
程序员文章站
2022-06-01 12:46:23
...
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
上一篇: python基础之良好的编程习惯
推荐阅读
-
编译PHP报错configure error Cannot find libmysqlclient under usr的解决方法
-
webpack-dev-server config.js Cannot find module
-
cannot find supercluster & native module cannot be null & Xcode build timeout
-
Error: ENOENT: no such file or directory, uv_cwd Error: Cannot find module
-
【已解决】运行webpack-dev-server时提示Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
-
webpack5: Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
Webpack 报错:Error: Cannot find module ‘webpack-cli/bin/config-yargs‘
-
webpack-dev-server 报错 Error: Cannot find module ‘webpack/bin/config-yargs‘
-
webpack——Error: Cannot find module ‘webpack-cli/bin/config-yargs‘