Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics Getting Started with Express Creating a Route with Express

Nodemon not working

Nodemon not working when typed into the terminal even after installing it with npm install-g nodemon. Below is what my package.json file look like

{ "name": "flashcards", "version": "1.0.0", "description": "A flashcard app", "main": "app.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Sam", "license": "MIT", "dependencies": { "express": "^4.15.2" } }

2 Answers

What is the full command you are specifying? Typically you would pass in a command like so: nodemon ./server.js localhost 8080 which tells nodemon which script to load, and which host/port to use. Are you getting any errors?

Thanks, I already solved the problem by searching for a similar issue on Stack Overflow.

Mark Warren
Mark Warren
19,252 Points

Thanks Luke! I used

     nodemon .app.js localhost 3000

for the purposes of this exercise