手工安装 grunt.js/phantomJs/grunt-jasmine-runner 一些经验
来源:互联网 发布:linux more 查找内容 编辑:程序博客网 时间:2024/06/14 10:43
some experience to manually install grunt.js/phantomJs/grunt-jasmine-runner
1. Grunt.js/node.js should be quite easy toonce-click install if this centOS5 server has a internet connection, but, forthis server, I have to copy the .tar manually, then copy all modules andplugins by finding the right place to put
2. Grunt-jasmine-runner require phantomJs to rununit test. At first, I tried to run the complied version for linux, but itrequires libgc v2.9+ , which finally I realize centOS5 can’t afford such highversion (even forcely compile that lib with low version gcc compiler, possiblywill make the low version linux core crash).
3. Then I tried to compile phantomJs 1.7 manually,which depends on 30+ libs. Those can be download fromhttp://mirror.centos.org/centos/5/os/x86_64/CentOS/then copy to server, and run with rpm command in turn. Fortunately, it works
4. The last tricky one, the passed unit test failson that server by run ‘grunt jasmine’.
Running "jasmine" task
Testing jasmine specs via phantom
...
[D] ["phantomjs","onResourceReceived","GET http://127.0.0.1:8888/test/spec/CommonTest.js"]
[D] ["phantomjs","onError","ReferenceError: Can't find variable: describe",[{"file":"http://127.0.0.1:8888/test/spec/CommonTest.js","line":31,"function":""}]]
ReferenceError: Can't find variable: describe
...
At last, it’s caused by that: I createda symbolic link for “node_modules” to re-use common module, but it preventgrunt-jasmine-runner to fetch sth. (not sure yet). To resolve it, need to copythe “node_modules” files directly under project folder.
- 手工安装 grunt.js/phantomJs/grunt-jasmine-runner 一些经验
- 手工安装grunt.js 的模块
- grunt教程-安装grunt
- grunt js
- grunt js
- 安装Grunt
- grunt安装
- 安装 Grunt
- 安装Grunt
- grunt
- grunt
- Grunt
- Grunt
- grunt
- grunt
- Grunt
- grunt
- Grunt
- 上机课上C++快速排序的一个实例
- Pentaho Business Analytics 整个安装,启动,使用和停止的过程(windows7)
- Uva 10340 all in all (字符串匹配)
- ACCESS导出一句话SHELL
- 黑马老学员的建议
- 手工安装 grunt.js/phantomJs/grunt-jasmine-runner 一些经验
- Android Color 定义方法
- 为动态创建的控件添加事件绑定
- Access数据库注入高级玩法
- Java communication software design2(updating...)
- 开源java swing外观
- 使用X-UA-Compatible来设置IE浏览器兼容模式
- Android之TabHost组件美化
- Lucene 基础理论