node.js - 无法安装derbyjs : "No compatible version found"

标签 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版本: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.21npm v1.3.11

尝试进行本地安装:npm install derby。这也失败了吗?

如果 derby 安装正常,则说明您在安装其他模块时遇到问题,请尝试找出问题的根本原因,如果无法继续,请告诉我们。

关于node.js - 无法安装derbyjs : "No compatible version found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20470754/

相关文章:

node.js - 如何在未捕获的异常上优雅地重新启动 NodeJS 服务器?

node.js - 在没有 package.json 文件的文件夹中运行 "npm install --save X"

node.js - dyld : lazy symbol binding failed: Symbol not found: _node_module_register

javascript - derby - 更改时自动 "refresh"

javascript - Express session 内部回调返回未定义外部

javascript - Node.js "write after end"错误

javascript - VUE JS WEBPACK项目中如何通过&lt;script&gt;标签自动将NPM "dependencies"包含到index.html中?

javascript - 我可以将我的客户端文件放在 derbyjs 中的哪里

javascript - 在 derbyjs 中禁用浏览器 channel

node.js - Node 检查器不启动