无法安装derbyjs:“找不到兼容的版本”

我试图在Ubuntu上安装derbyjs。 我做:

sudo npm install -g derby 

但是我得到这个:

 <200 response code here> npm ERR! error installing uglify-js@2.4.7 npm http GET https://registry.npmjs.org/browser-resolve/-/browser-resolve-0.1.1.tgz npm ERR! error installing racer@0.5.4 <200 response code here> npm ERR! error installing derby@0.5.4 <200 response code here> npm ERR! Error: No compatible version found: source-map@'>=0.1.7- <0.2.0-' npm ERR! Valid install targets: npm ERR! ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3"] npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10) npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17) npm ERR! at next (/usr/share/npm/lib/cache.js:415:44) npm ERR! at /usr/share/npm/lib/cache.js:408:5 npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7) npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7) npm ERR! You may report this log at: npm ERR! <http://bugs.debian.org/npm> npm ERR! or use npm ERR! reportbug --attach /home/imkost/node/npm-debug.log npm npm ERR! npm ERR! System Linux 3.8.0-29-generic npm ERR! command "node" "/usr/bin/npm" "install" "-g" "derby" npm ERR! cwd /home/imkost/node npm ERR! node -v v0.6.12 npm ERR! npm -v 1.1.4 npm ERR! message No compatible version found: source-map@'>=0.1.7- <0.2.0-' npm ERR! message Valid install targets: npm ERR! message ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3"] npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/imkost/node/npm-debug.log npm not ok 

我无法弄清楚什么是错的。 有任何想法吗?

nodejs version: 0.10.22

npm version: 1.3.15

适用于我,你在哪里得到德比依赖source-map

这是从npm info derby获得的derby的依赖关系

 dependencies: { 'dom-shim': '~0.1.1', 'html-util': '~0.1.5', tracks: '~0.3.2', racer: '0.5.12', chokidar: '~0.6.2', stylus: '~0.32.1', less: '~1.3.3', nib: '~0.9.1', commander: '~1.1.1', mkdirp: '~0.3.5', MD5: '~1.0.1', async: '~0.2.8' }, devDependencies: { 'coffee-script': '*', 'expect.js': '*', mocha: '*', sinon: '*' }, 

顺便说一句,我使用node v0.10.21npm v1.3.11

尝试做本地安装: npm install derby 。 这是否也失败?

如果derby安装正常,则在安装其他模块时遇到问题,请尝试隔离问题的根本原因,然后让我们知道是否无法启动。