使用以下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
答案 0 :(得分:2)
尝试将节点版本更改为此类
{
"engines": {
"node": "0.6.x",
"npm": "1.0.x"
}
}
这将尝试附加" major"版本仍然可以正常工作。