node.js - nodejs npm install socket.io error -


i new node.js developer. trying simple chat project. want install socket.io npm error.

i use ubuntu 12.04

ubuntu@ubuntu-1210:~/masaüstü/blog$ npm install socket.io npm http https://registry.npmjs.org/socket.io  npm err! error: failed fetch registry: socket.io npm err!     @ /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12 npm err!     @ cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9) npm err!     @ request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18) npm err!     @ request.callback (/usr/lib/nodejs/request/main.js:119:22) npm err!     @ request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58) npm err!     @ request.emit (events.js:88:20) npm err!     @ clientrequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12) npm err!     @ clientrequest.emit (events.js:67:17) npm err!     @ httpparser.onincoming (http.js:1261:11) npm err!     @ httpparser.onheaderscomplete (http.js:102:31) npm err! may report log at: npm err!     <http://bugs.debian.org/npm> npm err! or use npm err!     reportbug --attach /home/ubuntu/masaüstü/blog/npm-debug.log npm npm err!  npm err! system linux 3.8.0-35-generic npm err! command "node" "/usr/bin/npm" "install" "socket.io" npm err! cwd /home/ubuntu/masaüstü/blog npm err! node -v v0.6.12 npm err! npm -v 1.1.4 npm err! message failed fetch registry: socket.io npm err!  npm err! additional logging details can found in: npm err!     /home/ubuntu/masaüstü/blog/npm-debug.log npm not ok 

sorry bad english. thank you.

like answer in link posted in comment above, i'd suggest first running

npm config set registry https://registry.npmjs.org/ 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -