How can I remove a npm package from my express.js project and package.json file?
I want to remove nodemon from dependencies in package.json and install it again as a devDependency.
Uninstall the package using:
npm uninstall <package_name>
And install it again as a devDependency with the following command:
npm install -D <package_name>
In your case it would be:
npm uninstall nodemon
npm install -D nodemon