Error description
After creating a new project with express in node, enter
npm start
The system reports an error, as shown in the figure:
Solution
After creating a new project, you should enter the following command:
npm install
Load other dependent modules. And then enter it
npm start
You can start the project normally.
Error reason
When express creates a project, for some libraries, such as HTTP errors code>, these libraries are not the core modules of node, but they must be used by express framework. So we have to use orders
npm install
Initialize and load these express dependent libraries.
Read More:
- objs/addon/ngx_http_proxy_connect_module-master/ngx_http_proxy_connect_module.o] Error 1
- Module build failed: error: cannot find module ‘node sass’ error
- NPM- Cannot find module ‘xxxxx’
- Error: Cannot find module ‘express’
- nodejs Error: Cannot find module ‘ejs‘
- Node.js Cannot find module ‘mysql’ ‘express’
- Error: cannot find module ‘mongoose’
- Error: Cannot find module ‘process-nextick-args’
- IIS 7.5, ASP.NET MVC. HTTP error 500 (internal server error), but debugging does not enter the background, the browser only reports 500 errors
- Error reported after moving or copying Vue items: cannot find module ‘xxx‘
- Error: Cannot find module ‘webpack/schemas/WebpackOptions.json’
- Error: Cannot find module’webpack/bin/config-yargs’ solution
- Error: cannot find module ‘node sass’
- Cannot find module ‘body-parser’
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- node.js Cannot find module “XXX” solution
- [Solved] Error: Cannot find module ‘webpack/lib/RequestShortener’
- Gulp Error: Cannot find module ‘jshint/src/cli’;
- Error: cannot find module ‘webpack / lib / ruleset’_ solve
- Solved – problem cannot find module ‘webpack / bin / config yargs’