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

时间:2013-12-09 12:30:44

标签: node.js npm 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

1 个答案:

答案 0 :(得分:2)

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

以下是来自npm info 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安装正常,则在安装其他模块时遇到问题,请尝试找出问题的根本原因,然后告诉我们您是否无法开始使用。