Run node app.js in PowerShell reports an error and displays: Error: Cannot find module ‘body-parser’
Solution: install the body-parser module, npm install –save body-parser
After the installation, execute the node app.js again, running successfully!
Read More:
- [Vue Run Error] Module build failed: Error: Couldn‘t resolve parser “babylon“
- Node.js Error: Cannot find module express [How to Solve]
- Node.js Error: Error: Cannot find module ‘express‘ [How to Solve]
- Error: Cannot find module ‘./application‘ [How to Solve]
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- Error Cannot find module ‘worker_threads‘ [How to Solve]
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils‘
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- The vue3 project Error: Cannot find module’vue-loader-v16/package.json’
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- [Solved] ERROR Error: Cannot find module ‘vue-loader-v16/package.json‘
- [webpack-cli] Error: Cannot find module ‘vue/compiler-sfc‘
- [Solved] Vue Project Error: Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
- How to Solve Nodejs error: cannot find module ‘. /application’
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- [Solved] Error: Cannot find module ‘vue-template-compiler/package.json‘ Require stack:
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- Can’t resolve ‘ansi-html-community’ & Cannot find module ‘is-docker (vuex-persistedstate Installed)