npx nodemon server.js or add in package.json config: ... "scripts": { "dev": "npx nodemon server.js" }, ... then run: npm run dev