美文网首页
konga安装

konga安装

作者: 我是大黄蜂 | 来源:发表于2021-11-01 09:33 被阅读0次

    安装KONGA

    安装nodejs和git,安装kong的文档中已经安装了,版本>=8,git运行

    Centos安装git

    yum install git -y

    yum install -y git

    需要注意版本,git --version  ,    版本太低的话需要重新下载,否则git  clone时会报错

    git解压编译安装

    cd git-2.0.0

    make configure

    ./configure --prefix=/usr/git ##配置目录

    make profix=/usr/git

    make install

    加入环境变量

    echo "export PATH=$PATH:/usr/git/bin" >> /etc/profile

    source /etc/profile

    检查版本

    git --version

    git version 2.0.0

    安装依赖  (这些依赖的包,安装在konga目录中,减少一些问题)

    yum -y install nodejs npm

    npm install -g gulp

    npm install -g bower

    npm install -g sails

    安装konga

    git clone https://github.com/pantsel/konga.git

    cd konga

    npm install konga

    npm start

    Tips:这里会遇到很多问题

    1.页面空白

    npm run bower-deps # (界面空白的时候,需要执行这个)

    npm install dotenv-extended

    npm install angular

    2.npm run bower-deps 一直失败

    大多数情况是因为有墙很多git包拉不下来

    git clone出现 fatal: unable to access 'https://github.com/...'的解决办法(亲测有效)_Dashi_Lu的博客-CSDN博客

    可以参考这个

    相关文章

      网友评论

          本文标题:konga安装

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