Build a Secure NestJS API with Postgres

David Neal

That is really bizarre. I see that nodemon uses graceful-fs as a dependency, so that must be what is causing the error. However, the latest version of nodemon should work without error. Maybe an older version of nodemon is cached on your system?

Try this for a workaround. Install nodemon as a developer dependency in the project using npm install --save-dev nodemon@2. Add an npm script to your package.json file that looks like this:


“scripts”: {
“dev”: “nodemon server.js --ext ts”
},

Now you should be able to do the same thing the npx command was doing by running npm run dev at the command line.