elementary os 15 gitbook install

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

npm config set registry=http://registry.npm.taobao.org -g
npm config get registry
npm install -g gitbook-cli --registry=https://registry.npm.taobao.org
gitbook -V

 

karl@karl-HPC:~$ sudo npm install gitbook-cli -g
/usr/local/node/bin/gitbook -> /usr/local/node/lib/node_modules/gitbook-cli/bin/gitbook.js
+ gitbook-cli@2.3.2
added 578 packages from 672 contributors in 39.754s
karl@karl-HPC:~$ cd /home/karl/Documents/MyGitBook/
karl@karl-HPC:~/Documents/MyGitBook$ gitbook init
bash: gitbook:未找到命令
karl@karl-HPC:~/Documents/MyGitBook$ sudo ln -s /usr/local/node/bin/gitbook /usr/local/bin/gitbook
karl@karl-HPC:~/Documents/MyGitBook$ gitbook init

 

posted @ 2020-08-30 21:10  Areas  阅读(189)  评论(0编辑  收藏  举报