Giter Club home page Giter Club logo

Comments (6)

AaronO avatar AaronO commented on May 18, 2024

@Runseb Try running an npm cache clean and then retry again

from gitbook.

sebgoa avatar sebgoa commented on May 18, 2024

no:

npm cache clean

npm install gitbook -g

npm http GET https://registry.npmjs.org/gitbook

npm ERR! Error: failed to fetch from registry: gitbook
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. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/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 /opt/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-58-generic
npm ERR! command "node" "/usr/bin/npm" "install" "gitbook" "-g"
npm ERR! cwd /opt
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: gitbook
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /opt/npm-debug.log
npm not ok

is there a specific version of npm needed ?

from gitbook.

AaronO avatar AaronO commented on May 18, 2024

I think you're going to have problems with most node projects with such an outdated version of npm and node. (the node package in ubuntu's repos is known to be outdated).

node v0.6.12 is really really old.

Update to v0.10.26 using this command :

wget -O - http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz | tar -C /usr/local/ --strip-components=1 -zxv

I use that command to install node on linux machines.

from gitbook.

sebgoa avatar sebgoa commented on May 18, 2024

ok fixed, sorry for the noise.

thanks

from gitbook.

jdblischak avatar jdblischak commented on May 18, 2024

Thanks for this solution. I received "Permission denied" using the one-liner even though I ran it as root. However, I was able to install it by separating the two steps:

wget http://nodejs.org/dist/v0.10.26/node-v0.10.26-linux-x64.tar.gz
sudo tar -C /usr/local/ --strip-components=1 -zxvf node-v0.10.26-linux-x64.tar.gz

This was also for 64-bit Ubuntu 12.04.

Lastly, another option is to install it locally and add the directory to PATH. Many options are available here.

from gitbook.

YxAc avatar YxAc commented on May 18, 2024

Thanks the above info.

from gitbook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.