我无法通过 npm 在 windows 上安装 nativescript
I can not install nativescript on windows via npm
我想在 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
我犯了什么错误?
我找到了问题,它是由 "local-npm" 模块引起的。我无法使用 npm,因为我已将注册表从 https://registry.npmjs.org
修改为 localhost:5080
。
我想在 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
我犯了什么错误?
我找到了问题,它是由 "local-npm" 模块引起的。我无法使用 npm,因为我已将注册表从 https://registry.npmjs.org
修改为 localhost:5080
。