我正在尝试在 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版本:0.10.22
npm 版本:1.3.15
最佳答案
对我有用,你从哪里获得对 source-map
的 derby 依赖?
以下是 derby 的依赖项,取自 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.21
和 npm v1.3.11
。
尝试进行本地安装:npm install derby
。这也失败了吗?
如果 derby
安装正常,则说明您在安装其他模块时遇到问题,请尝试找出问题的根本原因,如果无法继续,请告诉我们。
关于node.js - 无法安装derbyjs : "No compatible version found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20470754/