2

使用以下 package.json

{
  "name": "...",
  "version": "0.1.1",
  "engines": {
    "node": "0.6.14",
    "npm":  "1.1.4"
  },
  "private": true,
  "scripts": {
    "start": "node app"
  },
  "dependencies": {
    "connect-assets": "2.1.9",
    "ejs": "0.7.1",
    "everyauth": "0.2.32",
    "express": "2.5.9",
    "less-middleware": "0.1.4",
    "mocha": "1.0.1",
    "should": "0.6.1",
    "socket.io": "0.9.6",
    "underscore": "1.3.3"
  }
}

我得到以下

WARNING: No version of Node.js specified in package.json, see:
       https://devcenter.heroku.com/articles/nodejs-versions
4

1 回答 1

2

尝试将节点版本更改为这样的

{
  "engines": {
    "node": "0.6.x",
    "npm":  "1.0.x"
  }
}

这将尝试附加“主要”版本应该仍然可以正常工作。

于 2012-04-24T14:33:21.450 回答