“Installation de Nodemon” Réponses codées

Installation de Nodemon

# 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
Mehedi Islam Ripon

nomon

npm install -g nodemon
Shiny Shark

Installer NODEMON

npm install nodemon --save-dev
rabbit.sol

package nodemon.json start

{
  "name": "abc",
  "version": "0.0.1",
  "description": "my server",
  "scripts": {
    "start": "nodemon my_file.js"		// <= 
Plain Porpoise

script nodemon

# 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
Stupid Skipper

Installer NODEMON

// globally install nodemon
npm install -g nodemon

// modify package > script for easily use
"start": "node index.js", // replace index.js by your file-name
"start-dev": "nodemon index.js", 
SHAH SOLAYMAN SINHA

Réponses similaires à “Installation de Nodemon”

Questions similaires à “Installation de Nodemon”

Plus de réponses similaires à “Installation de Nodemon” dans Shell/Bash

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code