我按天無奈之舉。給我最好的解決方案。NPM離子安裝錯誤的node.js
你的環境已經建立了如何使用Node.js 0.10.38(64)和NPM。
C:\Users\ASAR-KSS>npm install -g ionic
npm ERR! network getaddrinfo ENOTFOUND
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! cwd C:\Users\ASAR-KSS
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\ASAR-KSS\npm-debug.log
npm ERR! not ok code 0
C:\Users\ASAR-KSS>
嘗試'sudo npm install -g ionic' –
以下錯誤: C:\ Users \ ASAR-KSS> sudo npm install -g離子 'sudo'未被識別爲內部或外部命令, 可操作程序或批處理文件。 –
須藤只適用Linux機器 –