【问题标题】:Error while doing "npm install"执行“npm install”时出错
【发布时间】:2013-08-22 19:44:20
【问题描述】:

我是新手。我不知道这是否必须认真对待,或者我可以继续我正在做的事情。只有在这里我才能把它详细地贴出来。

npm ERR! error installing express@3.3.5
npm ERR! error rolling back express@3.3.5 Error: UNKNOWN, unknown error '/home/ubuntu/vengit/node_modules/express'

npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: connect@2.8.5
npm ERR! Required: {"node":">= 0.8.0"}
npm ERR! Actual:   {"npm":"1.1.4","node":"0.6.12"}
npm ERR!
npm ERR! System Linux 3.2.0-40-virtual
npm ERR! command "node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ubuntu/vengit
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! code ENOTSUP
npm ERR! message Unsupported
npm ERR! errno {}
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/mime
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ubuntu/vengit/npm-debug.log
npm not ok

【问题讨论】:

  • 您拥有 Node 0.6.12,您将无法安装 Express 3.x.x。为什么不能升级 Node.js?使用 0.6.12 有什么特别的原因吗?
  • 没有。没有理由。让我尝试升级它。

标签: git node.js heroku npm


【解决方案1】:

错误是因为 Express 的依赖项之一 (Connect) 需要 Node 0.8.0 或更高版本。

npm ERR! Required: {"node":">= 0.8.0"}
npm ERR! Actual:   {"npm":"1.1.4","node":"0.6.12"}

而且,由于您已安装 Node 0.6.12,您将无法安装 Express 3.3.5。

您可以尝试安装旧版本的 Express 或将 Node 更新到至少 0.8.0。

【讨论】:

    猜你喜欢
    • 2020-12-01
    • 1970-01-01
    • 2021-04-12
    • 1970-01-01
    • 2013-09-17
    • 2017-04-25
    • 2018-11-22
    相关资源
    最近更新 更多