大刘的 iOS 自学笔记

MAC OS安装gitbook

2019-03-06  本文已影响0人  大刘

环境:macOS Mojave 10.14.3
安装gitbook各种失败, npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/gitbook-....

解决方法:

  1. remove npm: sudo npm uninstall npm -g
  2. install npm: brew install npm
  3. update node: brew upgrade node
  4. install gitbook: sudo npm install gitbook-cli -g
  5. check gitbook: gitbook current, it shows: GitBook version is 3.2.3

我的npm版本:

liuweizhendeMacBook-Pro:~ liuweizhen$ npm -v
6.7.0
liuweizhendeMacBook-Pro:~ liuweizhen$ node -v
v11.10.1
上一篇下一篇

猜你喜欢

热点阅读