Solution:npm install webpack-cli -g
Error: Cannot find module 'webpack-cli/package.json'
Require stack:
- C:\Users\12987\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.resolve (internal/modules/cjs/helpers.js:94:19)
at runCli (C:\Users\12987\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:65:26)
at C:\Users\12987\AppData\Roaming\npm\node_modules\webpack\bin\webpack.js:154:5
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\12987\\AppData\\Roaming\\npm\\node_modules\\webpack\\bin\\webpack.js'
]
}
Read More:
- [Solved] Webpack compilation Error: Cannot find module’webpack-cli/bin/config-yargs’
- NPM start project error: cannot find module ‘webpack’ problem solution
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- Error: cannot find module ‘webpack cli/bin/config yargs’‘
- How to Solve Error: Cannot find module ‘webpack/lib/RequestShortener’
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution
- [Go] Solve can’t load package: cannot find module providing package github.com/xxxxx
- How to Fix Webpack run error webpack dev server
- [Solved] Error: error getting chaincode bytes: ‘go list‘ failed with: cannot find module providing package
- Webpack Error: Module build failed: TypeError: this.getOptions is not a function
- webpack4 Use webpack-dev-server Error [How to Solve]
- Error: uncaughtexception: cannot find module ‘internal / util / types’
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- [Solved] npm Error: Error: Cannot find module ‘postcss-loader‘
- [Solved] Failed loading positionFile: /opt/module/flume/taildir_position.json
- Error: Cannot find module ‘png-js‘ [How to Solve]
- [Solved] TS Error: Could not find a declaration file for module
- [Solved] VScode Error: find_package(catkin) failed
- [Solved] SyntaxError:JSON.parse:unexpected character at line 1 column 1 of the JSON data