You’re running express 4, which has the app.listen
call in a different file than app.js
. The command you’re looking for is nodemon bin/www
(localhost
and 3000
are not needed in this scenario).
In fact, you can even run nodemon
with no args, and it’ll read what command needs to be run from scripts.start
in package.json
(which express generates automatically).
Related Posts:
- nodemon – app crashed – waiting for file changes before starting
- nodemon not working: -bash: nodemon: command not found
- I can´t install nodemon globally, “nodemon” not recognized
- Node.exe Stuck at 100% CPU
- How do I debug error ECONNRESET in Node.js?
- How do I debug error ECONNRESET in Node.js?
- What is Express.js?
- What does body-parser do with express?
- node.js, Error: Cannot find module ‘express’
- node.js, Error: Cannot find module ‘express’
- “Topology was destroyed” when using MongoDB with native driver and Express.js
- Error: getaddrinfo ENOTFOUND in nodejs for get call
- Failed to load resource: net::ERR_CONNECTION_REFUSED : Nodejs
- nodemon not found in npm
- SyntaxError: Unexpected token import – Express
- nodemon not found in npm
- Error: No default engine was specified and no extension was provided
- Significance of port 3000 in Express apps
- ExpressJS – throw er Unhandled error event
- NodeJS / Express: what is “app.use”?
- Why am I getting “Error socket hang up” response?
- How to Create and Use Enum in Mongoose
- First Heroku deploy failed `error code=H10`
- How to get GET (query string) variables in Express.js on Node.js?
- Error: Cannot find module ‘ejs’
- First Heroku deploy failed `error code=H10`
- In express how do I redirect a user to an external url?
- ExpressJS – throw er Unhandled error event
- ENOENT, no such file or directory
- ExpressJS : res.redirect() not working as expected?
- Push items into mongo array via mongoose
- NodeJS w/Express Error: Cannot GET /
- Express.js req.body undefined
- Enabling HTTPS on express.js
- Nodemon Error: System limit for number of file watchers reached
- heroku is giving me Method not allowed
- passport.js passport.initialize() middleware not in use
- ExpressJS vs MeteorJS
- Cannot POST / error using express
- Route.get() requires callback functions but got a “object Undefined”
- npm WARN package.json: No repository field
- Advice on loopback.js vs express js
- How to update a array value in Mongoose
- How do I use HTML as the view engine in Express?
- Hapi/Joi Validation: How to process text to a specific format
- bodyParser is deprecated express 4
- Cannot access mongodb through browser – It looks like you are trying to access MongoDB over HTTP on the native driver port
- How do I update Node.js?
- Can not find module “@angular-devkit/build-angular”
- sudo: npm: command not found
- How to resolve Nodejs: Error: ENOENT: no such file or directory
- Node.js getaddrinfo ENOTFOUND
- Does anyone knows what “rimraf” means?
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- Please run `npm cache clean`
- Client on Node.js: Uncaught ReferenceError: require is not defined
- node.js string.replace doesn’t work?
- What is the difference between npm install and npm run build?
- Error: Can’t set headers after they are sent to the client
- Express error – TypeError: Router.use() requires middleware function but got a Object
- What is “export default” in JavaScript?
- What is NODE_ENV and how to use it in Express?
- NPM Start not starting local server
- What is the –save option for npm install?
- Node Version Manager install – nvm command not found
- npm install not working in windows
- Mongoose: findOneAndUpdate doesn’t return updated document
- Discord.js sending a message to a specific channel
- The difference between “require(x)” and “import x”
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- “npm config set registry https://registry.npmjs.org/” is not working in windows bat file
- How do I uninstall a package installed using npm link?
- TypeError: Router.use() requires middleware function but got a Object
- Error “Cannot find module ‘npmlog'” after “npm update -g”
- Differences between socket.io and websockets
- What is the difference between –save and –save-dev?
- error: This is probably not a problem with npm. There is likely additional logging output above
- Difference between MongoDB and Mongoose
- MissingSchemaError: Schema hasn’t been registered for model “User”
- Do I commit the package-lock.json file created by npm 5?
- node.js error message events.js:183 throw er; // Unhandled ‘error’ event
- Error: Cannot find module html
- TypeError: res.status is not a function
- db.collection is not a function when using MongoClient v3.0
- http-server command not found
- npm install errors with Error: ENOENT, chmod
- npm WARN deprecated [email protected]: Use uuid module instead
- In Mongoose, how do I sort by date? (node.js)
- How do you uninstall all dependencies listed in package.json (NPM)?
- How can I use an ES6 import in Node.js? [duplicate]
- Loop through JSON in EJS
- NPM warn message about deprecated package
- How npm start runs a server on port 8000
- Webpack – webpack-dev-server: command not found
- npm install hangs
- ReferenceError: describe is not defined NodeJs
- Nodejs – Redirect url
- ode.js vs. meteor.js what’s the difference?
- AWS s3 api error: specified bucket does not exist