alabid / flylatex

FlyLatex: A Realtime Collaborative Environment (with a concurrent editor) in node-js.
766 stars 85 forks source link

Installation error - npm unable to fetch from registry #43

Closed leee closed 10 years ago

leee commented 10 years ago

Machine information: Invoking lsb_release -a gives me:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise

Steps taken up to error:

  1. sudo apt-get install node npm mongodb texlive-latex-base
  2. git clone https://github.com/alabid/flylatex.git
  3. cd flylatex/
  4. emacs configs.js # edited config file with path to save pdfs.
  5. npm install -d

Output on terminal upon running step 5.

npm info it worked if it ends with ok
npm info using npm@1.1.4
npm info using node@v0.6.12
npm info preinstall fly-latex@0.9.1
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/share
npm http GET https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/connect-mongo
npm http GET https://registry.npmjs.org/ejs
npm http GET https://registry.npmjs.org/fs-extra

npm ERR! Error: failed to fetch from registry: mongoose
npm ERR!     at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR!     at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR!     at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR!     at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR!     at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR!     at Request.emit (events.js:88:20)
npm ERR!     at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR!     at ClientRequest.emit (events.js:67:17)
npm ERR!     at HTTPParser.onIncoming (http.js:1261:11)
npm ERR!     at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/elee/flylatex/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-24-virtual
npm ERR! command "node" "/usr/bin/npm" "install" "-d"
npm ERR! cwd /home/elee/flylatex
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: mongoose
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/elee/flylatex/npm-debug.log
npm not ok

Steps taken to attempt to resolve problem: Saw somewhere online to append --registry http://165.225.128.50:8000 to npm install -d for npm install -d --registry http://165.225.128.50:8000. Address acts as proxy.

leee commented 10 years ago

Update: running npm install -d over and over shows me the error Error: failed to fetch from registry: $SOMETHING, where SOMETHING cycles between share, socket.io, temp, mongoose.

Perhaps this tells us that there is a network error of sorts. A restart of the server does not resolve the issue.

alabid commented 10 years ago

Seems like a network problem. Maybe at the time the npm registry was down. Has this problem been fixed?

leee commented 10 years ago

No, sorry!

I just started using ShareLaTeX again, not to mention they released their source too.

andres-sacco commented 10 years ago

I had the same problem, in order to resolve this problem execute the following command: npm config set registry http://registry.npmjs.org/

wngr commented 10 years ago

Thanks, that dit it for me!