GitBook on FreeBSD?
Matthias Apitz
guru at unixarea.de
Fri Oct 16 18:32:54 UTC 2015
El día Friday, October 16, 2015 a las 08:25:02AM -0500, Brandon J. Wandersee escribió:
> > Is it possible (has someone) to install GitBook locally on FreeBSD, to
> > do the book rendering to HTML locally? I do not see any port for this.
> >
> > Thanks
> >
> > matthias
>
> There's no port for GitBook, but there is one for npm.
>
> https://www.freshports.org/www/npm/
Thanks. I have installed www/npm and run:
$ npm install gitbook-cli -g
npm ERR! FreeBSD 11.0-CURRENT
npm ERR! argv "node" "/usr/local/bin/npm" "install" "gitbook-cli" "-g"
npm ERR! node v0.10.32
npm ERR! npm v2.0.2
npm ERR! path /usr/local/lib/node_modules/gitbook-cli
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/gitbook-cli'
npm ERR! { [Error: EACCES, mkdir
'/usr/local/lib/node_modules/gitbook-cli']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/gitbook-cli',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/gitbook-cli',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [
'/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR!
'/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
...
Is it safe to run this as root?
# npm install gitbook-cli -g
matthias
--
Matthias Apitz, ✉ guru at unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045
More information about the freebsd-questions
mailing list