Merge pull request #12170 from zuccamia/patch-1

Duplication in nodemon installation instructions
This commit is contained in:
Usha Mandya 2021-01-25 19:25:10 +00:00 committed by GitHub
commit 23e854277a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -154,16 +154,7 @@ Open the `package.json` file and add the following line to the scripts section:
"debug": "nodemon --inspect=0.0.0.0:9229 server.js"
```
As you can see, we are going to use nodemon. Nodemon starts our server in debug mode and also watches for files that have changed, and restarts our server. Lets add nodemon to our `package.json` file.
```json
$ npm install nodemon
```
To start our application in debug mode, we need to add a line to our `package.json` file to tell npm how to start our application in debug mode.
Open the `package.json` file and add the following line to the scripts section.
As you can see, we are going to use `nodemon`. Nodemon starts our server in debug mode and also watches for files that have changed, and restarts our server. Lets add nodemon to our `package.json` file.
As you can see, we are going to use nodemon. Nodemon starts our server in debug mode and also watches for files that have changed, and restarts our server. Lets run the following command in a terminal to install nodemon into our project directory.
```json
$ npm install nodemon