我一直在尝试使用以下命令在我的Linux 17.10中为node.js安装mysql模块:
npm install -g mysql
然而,下面的这个错误仍在继续,但我尝试了很多东西。
divyanshu@DVProBook:~/Documents/nodejsassignment$ npm install -g mysql
npm ERR! Linux 4.13.0-38-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "mysql"
npm ERR! node v6.11.4
npm ERR! npm v3.5.2
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=connect ETIMEDOUT 172.16.19.10:80
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! Please include the following file with any support request:
npm ERR! /home/divyanshu/Documents/nodejsassignment/npm-debug.log
我尝试更改连接,但没有帮助。
如果有人知道什么是错的,那么请帮忙。谢谢