Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
Nodemon command is not recognized since index.js moved

I have an issue since I moved my "index.js" file out of the same location I have my 'package.json' for my server. Now, every time I want to run my server with the 'npm run dev' command, the following error appears on the console:

nodemon is not recognized as internal or external command, operable program or batch file

My code on my server's package.json looks like this:

"scripts": {
  "start": "nodemon index.js",
  "dev": "set NODE_ENV=development && nodemon server.js",
  "prod": "set NODE_ENV=production && nodemon server.js"
}

My index.js file is on server/index/index.js, while my package.json is on my server's home directory. I tried to change my start command like this:

"start": "nodemon ../index/index.js"

but that doesn't seem to work. Any suggestions?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try to install nodemon globally:

npm install -g nodemon 
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!