MAC OS安装gitbook

作者: 大刘 | 来源:发表于2019-03-06 18:50 被阅读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
    

    相关文章

      网友评论

        本文标题:MAC OS安装gitbook

        本文链接:https://www.haomeiwen.com/subject/owuxpqtx.html