npm windows install global führt zu npm ERR! überflüssig

Ich bin neu in grunt und npm. So versuche ich einige "Kochbuch-Beispiel" auf der Website 'http://tech.pro/tutorial/1190/package-managers-an-introductory-guide-for-the-uninitiated-front-end-developer#front_end_developers'.
Sie sollten nicht zu schauen, gibt es nun, aber ich dachte, es sein könnte gut, um zu teilen der Website.
So weit So gut, bis es um die Globale Installation. (Ok, einige Fehler, die ich hatte, um herauszufinden, aber jetzt muss ich arbeiten npm).

Wenn es um den Punkt versucht zu installieren, etwas, das weltweit stecken ich.

Was ich getan habe bisher zum testen weltweit der Installation einige Paket:

  1. Erstellten test-Verzeichnis grunttest
  2. In diesem Verzeichnis:

    npm install -g jshint

Ausgabe sehe ich:

 npm http GET https://registry.npmjs.org/jshint
 npm http 304 https://registry.npmjs.org/jshint
 ...
 npm http 304 https://registry.npmjs.org/string_decoder
 C:\Program Files\nodejs\node_modules\npm\jshint -> C:\Program Files\nodejs\node_modules\npm\node_modules\jshinnt
 [email protected] C:\Program Files\nodejs\node_modules\npm\node_modules\jshint
 ├── [email protected]
 ├── [email protected]
 ├── [email protected]
 ├── [email protected]
 ├── [email protected] ([email protected], [email protected])
 ├── [email protected] ([email protected])
 └── [email protected] ([email protected], [email protected], [email protected], [email protected])

Ich nur erkennen, die 304, die ok sein sollten, aufgrund der nur sagt, die Ressource wurde nicht geändert seit der letzten installation (paar Minuten vorher).

Zu überprüfen, ob die jshint existiert mit:

`npm -global list`

Ausgabe:

[email protected] C:\Program Files\nodejs\node_modules\npm
├── [email protected]
├── [email protected]
├─...
├──
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected] extraneous
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │   └─... ├── [email protected]
├── [email protected]
└── [email protected]

**npm ERR! extraneous: [email protected] C:\Program Files\nodejs\node_modules\npm\node_modules\jshint npm**

Fragen:

  1. Warum erhalte ich die npm ERR! Fremd ...?
  2. Was bedeutet es?
  3. Wie kann ich dieses Problem beheben?

Informationen:

Bin ich auf einer windows-Maschine mit Windows 7, unter Verwendung der cygwin-shell.
versuchen, nur die jshint (jshint someTestfile.js) natürlich nicht funktioniert.

Vielen Dank im Voraus, Meru

InformationsquelleAutor der Frage Meru | 2014-03-24

Schreibe einen Kommentar