0
我是新手,nodejs.I mysql的模塊試圖使用下面的命令錯誤在安裝的NodeJS
npm install mysql
它顯示下面的錯誤安裝MySQL模塊。
C:\Program Files\nodejs>npm install mysql
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files
\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysql"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT
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 networ
gs.
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! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files
\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysql"
npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! Uncaught, unspecified "error" event.
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! C:\Program Files\nodejs\npm-debug.log
C:\Program Files\nodejs>
如何解決上述錯誤?任何幫助將不勝感激!!!
謝謝@ alxn,我運行上面的命令。它再次爲我工作,再次感謝。 – Madhesh