我正在尝试为Node.js安装mysql驱动程序 但是我得到了错误。
有人可以帮助我吗?提前致谢:)
C:\ tmp \ node> npm install mysql
npm http GET http://registry.npmjs.org/mysql
npm http GET http://registry.npmjs.org/mysql
npm http GET http://registry.npmjs.org/mysql
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 settin
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! System Windows_NT 5.1.2600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysql"
npm ERR! cwd C:\tmp\node
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5`enter code here`
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:\tmp\node\npm-debug.log
npm ERR! not ok code 0
答案 0 :(得分:0)
错误未严格连接到mysql模块。 可能你是代理的后面,尝试遵循如何在代理后面设置npm的指令: