最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Mac已安装gitbook-cli去gitbook查看版本号时一直卡死在Installing GitBook 3.2.3

Mac crifan 3131浏览 0评论
折腾:
【未解决】Mac中彻底卸载和重新安装gitbook
期间,之前已经:
npm install -g gitbook-cli
现在去看看版本号:
~  which gitbook
/usr/local/bin/gitbook
~  gitbook --version
CLI version: 2.3.2
Installing GitBook 3.2.3
但是始终没结束:
卡死在:Installing GitBook 3.2.3
GitbookIO/gitbook-cli: GitBook’s command line interface
刚发现是:
Installing GitBook 3.2.3
去安装的。
中断,用npm去安装?
命令集合 · lyj’s Glory
“* gitbook-cli 和 gitbook 是两个软件
* gitbook-cli 会将下载的 gitbook 的不同版本放到 ~/.gitbook中, 可以通过设置GITBOOK_DIR环境变量来指定另外的文件夹”
npm install -g gitbook
然后:
【已解决】Mac中用npm安装gitbook想办法提高下载速度
后来有看到:
进度突然加快很多:
然后马上就结束了,然后:
【已解决】Mac中npm安装gitbook报错:[email protected] node-gyp rebuild define NAN_DEPRECATED __attribute__ deprecated
【后记】
折腾:
【已解决】Mac中已安装gitbook和gitbook-cli但还是报错:Run npm uninstall -g gitbook then npm install -g gitbook-cli
后,又遇到此问题。
然后是等了很长时间(20分钟+)后,最后终于正常了:
  ~  gitbook -V
CLI version: 2.3.2
Installing GitBook 3.2.3
[email protected] ../../var/folders/gt/5868sbcd1jq4rxvryqhy2_1sz8n0s3/T/tmp-283779Qoyev16BzCA/node_modules/gitbook
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])
GitBook version: 3.2.3
再去试试查看版本号:
 ~  gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3
就正常了。
【总结】
此处Mac中,安装了相对旧版本的node:
 ~  node --version
v10.23.1
~  npm --version
6.14.10
后,去安装gitbook-cli:
npm install -g gitbook-cli
后,再去查看gitbok版本:
gitbook --version
会卡死在:
Installing GitBook 3.2.3
最后是:等待一段(几十分钟?)时间后,终于正常安装了。
 gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3
可以正常查看版本和使用了。

转载请注明:在路上 » 【已解决】Mac已安装gitbook-cli去gitbook查看版本号时一直卡死在Installing GitBook 3.2.3

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.204 seconds, using 22.15MB memory