den*_*min 4 heroku node.js npm express
看起来像heroku正在使用npm版本1.0.94
我有一个需要节点0.6.x的依赖项,但是npm 1.0.94是基于节点0.4.7的"基础"
有没有解决此问题的解决方法.
Installing dependencies with npm 1.0.94
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: palette@0.0.1
npm ERR! Required: {"node":"0.6.x"}
npm ERR! Actual: {"npm":"1.0.94","node":"0.4.7"}
Run Code Online (Sandbox Code Playgroud)
列出的示例是@ http://devcenter.heroku.com/articles/node-js
当我将package.json修改为以下内容时,为我工作:
{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
"express": ">=2.2.0"
}
}
Run Code Online (Sandbox Code Playgroud)
您可以使用buildpack为heroku构建自己的节点版本.
在https://github.com/heroku/heroku-buildpack-nodejs中分叉并修改节点版本
另见http://blog.superpat.com/2011/11/15/running-your-own-node-js-version-on-heroku/
| 归档时间: |
|
| 查看次数: |
3758 次 |
| 最近记录: |