码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7-安装部署Mirrorgate

时间:2018-11-24 21:09:39      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:try   zip2   x64   current   rgb   command   str   eve   problem   

 

 

FAQ

1.没有安装bzip2

解决方法 yum -y install bzip2

> phantomjs-prebuilt@2.1.16 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

> wd@1.11.0 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: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 (node_modules/phantomjs-prebuilt):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: phantomjs-prebuilt@2.1.16 install: `node install.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wd@1.11.0 install: `node scripts/build-browser-scripts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the wd@1.11.0 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

标签:try   zip2   x64   current   rgb   command   str   eve   problem   

原文地址:https://www.cnblogs.com/mascot1/p/10013191.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!