Node.js

Installation

Tester dans un CMD avec la commande npm -v:

C:\Users\thierry>npm -v
6.9.0

Initialisation d'un projet avec NPM

npm init -y créé un fichier package.json dans le répertoire de travail.

X:\wiki\test>npm init -y
Wrote to X:\wiki\test\package.json:
 
{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}
Vous pourriez laisser un commentaire si vous étiez connecté.