Centos7-安装部署Mirrorgate

Posted mascot1

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7-安装部署Mirrorgate相关的知识,希望对你有一定的参考价值。

 

 

FAQ

1.没有安装bzip2

解决方法 yum -y install bzip2

> [email protected] install /root/test/mirrorgate/mirrorgate-dashboard/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
  [========================================] 99%
Received 22866K total.
Extracting tar contents (via spawned process)
Error extracting archive
Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar (child): bzip2:无法 exec: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

 2.未知错误

google一下貌似跟权限有关系 添加参数

npm install --registry https://registry.npm.taobao.org  --unsafe-perm=true --allow-root

> [email protected] install /root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd
> node scripts/build-browser-scripts

/root/test/mirrorgate/mirrorgate-dashboard/node_modules/mkdirp/index.js:90
                    throw err0;
                    ^

Error: EACCES: permission denied, mkdir ‘/root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd/build‘
    at Object.mkdirSync (fs.js:750:3)
    at sync (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/mkdirp/index.js:71:13)
    at Object.<anonymous> (/root/test/mirrorgate/mirrorgate-dashboard/node_modules/wd/scripts/build-browser-scripts.js:6:1)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
    at startup (internal/bootstrap/node.js:285:19)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/phantomjs-prebuilt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node scripts/build-browser-scripts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-11-24T11_45_35_121Z-debug.log

 

以上是关于Centos7-安装部署Mirrorgate的主要内容,如果未能解决你的问题,请参考以下文章

01-Mirrorgate简介

clickhouse 20.x 三分片两副本部署与本地表的压力测试

Centos7.5 SonarQube+Artifactory部署

centos7 部署安装gitlab服务器

centos7服务器搭建javaweb运行环境及代码部署

Centos7.2从github拉代码部署到tomcat