Comments (6)
@Runseb Try running an npm cache clean
and then retry again
from gitbook.
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.
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.
ok fixed, sorry for the noise.
thanks
from gitbook.
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.
Thanks the above info.
from gitbook.
Related Issues (20)
- Search should list all instances with context, not just pages where term occurs
- Error:EPERM
- Support New Embeds in PDF export
- Gitbook directory folding
- Garbled messages appeared when changing url path of page using Chinese input method
- Publish new version to NPM? HOT 2
- can not login with github account
- Gitbook not getting updates from GitHub
- Gitbook loads the wrong page every time when I open it.
- 'Copy' on Request / Response examples not updating clipboard
- Add hoverable anchor feature for paths on OpenAPI spec renderings
- User selection on payload properties in OpenAPI spec HOT 1
- Unable to use `target="_blank"` for anchor tags HOT 2
- Feature request - global tabs settings
- "/" meun don't support chinese.
- can't search words in tabs/table/cards
- support more markdown syntaxs
- "[XXX](/)" refers to a wired location other than the root directory HOT 1
- cover.jpg does not show on the gitbook and exported pdf file HOT 1
- Integration button elements do not work. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitbook.