-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Reproducible on Ubuntu, Xubuntu 14.04, as VMs on VirtualBox
- Installing
gitbookvia installGitbook() function results in
sudo: no askpass program specified, try setting SUDO_ASKPASS
Error in installGitbook() :
gitbook installation failed. Typically installing as root/Administrator from the terminal/console works:
npm install gitbook -g
npm install gitbook-pdf -g
npm install gitbook-plugin
Solution: Tested many options. The simplest is to restart R session as administrator (use sudo)
- Even after installing
sudo apt-get install nodejs npm, bash complains:
sh: 1: node: not found
Solution: Make symbolic link sudo ln -s /usr/bin/nodejs /usr/bin/node
gitbook-pdfhas trouble installing, viainstallGitbook()and from command line usingsudo nmp install gitbook-pdf -g. The error is - for some reason access tophantomjstarball is denied. Attempt to install phantomjs separately does not help. No solution.
> phantomjs@1.9.7-5 install /usr/local/lib/node_modules/gitbook-pdf/node_modules/phantomjs
> node install.js
Downloading http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
Saving to /usr/local/lib/node_modules/gitbook-pdf/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-x86_64.tar.bz2
Receiving...
Error requesting archive.
Status: 403
Request options: {
"protocol": "http:",
"slashes": true,
"auth": null,
"host": "cdn.bitbucket.org",
"port": null,
"hostname": "cdn.bitbucket.org",
"hash": null,
"search": null,
"query": null,
"pathname": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2",
"path": "/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2",
"href": "http://cdn.bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2"
}
Response headers: {
"content-type": "text/html",
"content-length": "14134",
"connection": "keep-alive",
"date": "Sat, 24 May 2014 01:09:34 GMT",
"last-modified": "Sat, 24 May 2014 00:08:24 GMT",
"etag": "\"999f4f548bfffe25245dc29e49c57e9c\"",
"accept-ranges": "bytes",
"server": "AmazonS3",
"age": "22909",
"x-cache": "Hit from cloudfront",
"via": "1.1 eceebc7fc75ad1b377e012ce418717cd.cloudfront.net (CloudFront)",
"x-amz-cf-id": "6DFQrXaTEQKCLggnbgBq1jY5xm4b0Ybu5XsTAn00xm62IdNS9Hwvwg=="
}
Make sure your network and proxy settings are correct.
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
npm ERR! not ok code 0
Metadata
Metadata
Assignees
Labels
No labels