Posts

Showing posts with the label nodemon

How to Install Nodemon as a DevDependency?

Nodemon is a development tool that is used to automatically restart your Node.js application when it detects changes to your code. You do not need to have Nodemon installed in production, as your application will be running continuously. To install Nodemon as a development dependency, simply open a terminal window and navigate to the directory of your project and run  one of the following commands: npm install --save-dev nodemon OR npm i -D nodemon This will install Nodemon and add it to your project's devDependencies section in the package.json file. This means that Nodemon will only be installed in your project's node_modules directory if you are using a package manager, such as npm or Yarn. It will not be installed if you are deploying your project to production. Once Nodemon is installed, you can start your Node.js application in development mode by running the following command: nodemon This will start Nodemon and watch for changes to your application files. When it det