Snippet

Installation de NPM

6 réponses de la communauté

# Install nodemon
npm install nodemon

# Install nodemon globally on your machine
npm install -g nodemon

# Install nodemon on your project as dev-dependency
npm install nodemon --save-dev
npm install -g nodemon
npm install nodemon --save-dev
{
  "name": "abc",
  "version": "0.0.1",
  "description": "my server",
  "scripts": {
    "start": "nodemon my_file.js"		// <= 
# Install nodemon
npm i nodemon
# Write a script like ...
"scripts": {
        "start":"nodemon index.js"
    }
# Start in your terminal with something like ...
nodemon ./server.js localhost 8000
or
npm run server
npm install --save-dev nodemon