gpt4 book ai didi

node.js - 在 heroku 上部署失败,因为 npm 版本不是最新的

转载 作者:搜寻专家 更新时间:2023-10-31 22:56:32 26 4
gpt4 key购买 nike

看起来 heroku 使用的是 npm 版本 1.0.94

我有一个需要 Node 0.6.x 的依赖项,但是 npm 1.0.94“基于” Node 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"}

最佳答案

示例列出@ http://devcenter.heroku.com/articles/node-js

当我将 package.json 修改为以下内容时为我工作:

{
"name": "node-example",
"version": "0.0.1",
"dependencies": {
"express": ">=2.2.0"
}
}

关于node.js - 在 heroku 上部署失败,因为 npm 版本不是最新的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8678449/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com