2016-08-31 10 views
1

I; schaue this Video-Tutorial auf Node.js und ich bekomme diese Fehlermeldung, sobald ich laufen npm install connect:'installieren npm connect' Fehler

user:15-connect$ npm install connect 
/home/path/to/NodeJS/Bucky_tutorials/15-connect 
└─┬ [email protected] 
    ├─┬ [email protected] 
    │ └── [email protected] 
    ├─┬ [email protected] 
    │ ├── [email protected] 
    │ ├─┬ [email protected] 
    │ │ └── [email protected] 
    │ └── [email protected] 
    ├── [email protected] 
    └── [email protected] 

npm WARN enoent ENOENT: no such file or directory, open '/home/path/to/NodeJS/Bucky_tutorials/15-connect/package.json' 
npm WARN 15-connect No description 
npm WARN 15-connect No repository field. 
npm WARN 15-connect No README data 
npm WARN 15-connect No license field. 
+0

Mein 50ct .: Entweder bist du im falschen Verzeichnis (das mit packages.json) oder du hast kein npm für dein Projekt eingerichtet => 'npm init 'zuerst –

Antwort

3

Ich denke, das ist eine Warnung, kein Fehler. Wenn Sie noch keine package.json-Datei haben, können Sie diese mit dem Befehl npm init erstellen.

0

Sie brauchen nicht package.json, es ist nur eine Warnung. Ich sehe keinen Fehler. vergewissere dich, dass ein Ordner mit dem Namen node_modules/connect nach npm install connect