环境:macOS Mojave 10.14.3
安装gitbook各种失败, npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/gitbook-....
解决方法:
- remove npm:
sudo npm uninstall npm -g
- install npm:
brew install npm
- update node:
brew upgrade node
- install gitbook:
sudo npm install gitbook-cli -g
- 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
网友评论