0

当我键入以下内容时,我想在 Windows 10 上安装 NativeScript:

    npm install -g nativescript

我收到此错误消息:

    D:\workspace\projects>npm install nativescript@next -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" "nativescript@next" "-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

我犯了什么错误?

4

1 回答 1

1

我找到了问题,它是由“local-npm”模块引起的。我无法 npm 因为我已将注册表从 修改https://registry.npmjs.orglocalhost:5080.

于 2016-11-14T14:23:30.773 回答