2016-09-21 4 views
1

Ich versuche, die npm Start Probleme auf eckig's Schnellstart zu beheben, so habe ich versucht, diese Abhängigkeiten zu installieren. Leider stoße ich auf diese Fehlermeldungen:Fehler npm gleichzeitig installieren lite-server Typoskript

$ sudo npm install -g concurrently lite-server typescript 
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 
npm ERR! Darwin 15.6.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.8 

npm ERR! uid must be an unsigned int 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 
npm ERR! Darwin 15.6.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.8 

[14 - 16 of this repeatedly appears] 

npm ERR! uid must be an unsigned int 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/username/npm-debug.log 

Ich weiß nicht, was das bedeutet, da ich nur ein Anfänger bin.

Antwort

0

Sie haben node.js Paket für mich node.js

Sie löst das Problem neu zu installieren

0

Es gibt mehrere Möglichkeiten, dieses Problem zu lösen. Es hat mit Berechtigungen zu tun. der folgenden Liste ist Zusammenfassung beider Lösungen:

Lösung A:

(1) npm-global-Verzeichnis unter/Benutzer erstellen // als/Benutzer // npm-global

(2) npm Config Set-Präfix/Benutzer // npm-global

(3) hinzufügen export PATH =/Users // npm-global/bin: $ PATH zu ~/.profile

(4) Quelle ~/.profile

(5) Wenn Sie keine Schritte tun wollen (3) & (4) zu ~/.bash_profile

oder

Lösung B den Export Kommentar hinzufügen:

(1) sudo chown -R $ USER/usr/local/

Folgen Sie dem Link https://docs.npmjs.com/getting-started/fixing-npm-permissions für weitere Details