2016-11-14 4 views
0

Ich möchte 10 NativeScript auf Windows installieren, wenn ich getippt:Ich kann nicht installieren nativescript auf Fenster über npm

npm install -g nativescript 

ich diese Fehlermeldung bekommen:

D:\workspace\projects>npm install [email protected] -g 
    npm ERR! Windows_NT 10.0.10586 
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abdelaziz\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "[email protected]" "-g" 
    npm ERR! node v4.4.5 
    npm ERR! npm v4.0.0 
    npm ERR! code ECONNREFUSED 
    npm ERR! errno ECONNREFUSED 
    npm ERR! syscall connect 

    npm ERR! Error: connect ECONNREFUSED 127.0.0.1:5080 
    npm ERR!  at Object.exports._errnoException (util.js:870:11) 
    npm ERR!  at exports._exceptionWithHostPort (util.js:893:20) 
    npm ERR!  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14) 
    npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:5080] 
    npm ERR! code: 'ECONNREFUSED', 
    npm ERR! errno: 'ECONNREFUSED', 
    npm ERR! syscall: 'connect', 
    npm ERR! address: '127.0.0.1', 
    npm ERR! port: 5080 } 
    npm ERR! 
    npm ERR! If you are behind a proxy, please make sure that the 
    npm ERR! 'proxy' config is set properly. See: 'npm help config' 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  D:\workspace\projects\npm-debug.log 

, was der Fehler I gemacht ?

+0

könnten Sie überprüfen, ob das gleiche Verhalten mit der offiziellen Version von NativeScript passiert. Versuchen Sie es mit 'npm install nativescript -g' zu installieren –

+0

Ich bekomme die gleiche Fehlermeldung für beide –

Antwort

1

Ich habe das Problem gefunden, es wurde von "local-npm" -Modul verursacht. Ich konnte nicht npm, weil ich die Registrierung von https://registry.npmjs.org zu localhost:5080 geändert habe.

Verwandte Themen