str*_*ght 6 javascript node.js jenkins phantomjs gruntjs
在CentOS(64位)系统上尝试运行phantomJS时,我遇到了一个奇怪的问题.
这是它报告的错误:
[4mRunning "qunit:all" (qunit) task[24m Testing http://localhost:8000/tests.html
Running PhantomJS...[31mERROR[39m
[31m>> [39m/home/jenkins/jenkins/workspace/nick_node_te/web-client/client/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs: /home/jenkins/jenkins/workspace/nick_node_te/web-client/client/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs: cannot execute binary file 0 [ '/home/jenkins/jenkins/workspace/nick_node_te/web-client/client/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs: /home/jenkins/jenkins/workspace/nick_node_te/web-client/client/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phantom/bin/phantomjs: cannot execute binary file' ]
[33mWarning: PhantomJS exited unexpectedly with exit code 126. Use --force to continue.[39m
[31mAborted due to warnings.[39m
Run Code Online (Sandbox Code Playgroud)
我似乎无法找到关于此类崩溃的任何好文档.这通常和/或值得一个bug报告吗?
更新:
这些是我文件的权限:
-rwxr-x--x. 1 root root 11308856 Sep 26 12:39 phantomjs
Run Code Online (Sandbox Code Playgroud)
Ehe*_*Tov 12
听起来它不是为你试图运行它的平台而构建的.确保删除node_modules目录并npm install在将存储库克隆到新平台时重新创建.目前将您的node_nodules目录包含在源代码管理中是不好的做法.只需保持您的package.json文件保持良好,并为每个repo克隆做一个npm install或npm update每个.此外,如果您正在使用,请添加node_modules/到您的.gitignore文件中,git这样您就不必担心在添加更改和提交时意外包含它.
| 归档时间: |
|
| 查看次数: |
4403 次 |
| 最近记录: |