我想用 socket.io 安装 NodeJS。我尝试了不同的安装方式,但都没有奏效。我从 tar.gz 安装,但是,我收到以下错误:
pedram@ubuntu:/var/tmp$ npm install socketio.tar.gz
npm WARN package.json socket.io@1.0.0 No repository field.
npm WARN excluding symbolic link client/socket.io.js -> ../node_modules/socket.io-client/socket.io-client.js
npm http GET https://registry.npmjs.org/socket.io-parser/1.0.2
npm http GET https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/socket.io-client
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/engine.io/0.4.3
npm http 200 https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/send/-/send-0.1.1.tgz
npm http 200 https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
npm http 200 https://registry.npmjs.org/engine.io/0.4.3
npm http GET https://registry.npmjs.org/engine.io/-/engine.io-0.4.3.tgz
npm http 200 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.2.tgz
npm http 200 https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
npm http 408 https://registry.npmjs.org/send/-/send-0.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/send/-/send-0.1.1.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.2.tgz
npm http 200 https://registry.npmjs.org/socket.io-parser/1.0.2
npm http GET https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-1.0.2.tgz
npm http 200 https://registry.npmjs.org/engine.io/-/engine.io-0.4.3.tgz
npm http 200 https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-1.0.2.tgz
npm WARN package.json socket.io-parser@1.0.2 No repository field.
npm http GET https://registry.npmjs.org/send/-/send-0.1.1.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.1.1.tgz
npm http 200 https://registry.npmjs.org/socket.io-client
终端卡在这里,看来我在那条线上有互联网问题,你有什么建议可以解决这个问题吗?