知道nodejs, 和jsdom吗?不知道的话可以跳过了。。你根本不知道我在问什么。
装了半天装不了jsdom,总出各种问题。有点受不了了。
环境:ubuntu12.04, 没有保持更新。
问题:
1, sudo apt-get install nodejs,得到的是0.6.9版,在sudo apt-get install npm之后,再sudo npm install jsdom的时候,出现node版本过老的情况,于是网上搜了搜,加了最新的nodejs源,安装了最新的nodejs(v0.10.22).
2, sudo apt-get install npm,得到版本1.3.15
3, 这一步出问题了: sudo npm install jsdom, 出问题,错误如下:
npm ERR! contextify@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.6 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.5.0-30-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "jsdom"
npm ERR! cwd /home/css
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/css/npm-debug.log
npm ERR! not ok code 0
要我去找什么contextify的作者是这个东东出的错不是npm的错。。。没这个耐心了。。装个jsdom用用还这么麻烦。。不知道有高手遇到这样的问题么?怎么解决的。thanks.
12.04不能安装jsdom
-
- 帖子: 7
- 注册时间: 2013-12-02 22:39
- 系统: ubuntu 12.04
-
- 帖子: 7
- 注册时间: 2013-12-02 22:39
- 系统: ubuntu 12.04
Re: 12.04不能安装jsdom
更新:我的12.04是64位的,换虚拟机中32位的ubuntu 13.04同样安装nodejs最新版,npm最新版然后装jsdom成功。
看来64位系统真成为主流了吗? 总有软件在64位系统上跑不起来回到32位系统。。
看来64位系统真成为主流了吗? 总有软件在64位系统上跑不起来回到32位系统。。