gpt4 book ai didi

javascript - Meteor-Now 部署错误 "sh: meteor: not found"

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

我在使用 meteor-now 部署我的 meteor 应用程序时遇到了问题。我遵循了本教程 here .我还尝试使用 ZEIT's 进行部署OSX 客户端,但它总是抛出相同的错误。
有人知道解决方法吗?

Build Errors shown here


编辑 1:这是我的 package.json

 {
"name": "helloworld",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"meteor-node-stubs": "^0.3.2"
}
}

最佳答案

随着过渡到现在的 v.2.0,基本上没有更多选项可以将它与 Meteor 一起使用。另请参阅 meteor-now 和 2.0 上的线程:

jkrup commented on 9 Nov 2018

Unfortunately with the current planned direction of Now, you're correct that it indicates MeteorJS will become essentially incompatible with Now.

However, I won't let that be the end to this project. Which will remain the easiest/zero-config way to deploy meteor apps. I've actually have already experimented with deploys on a different platform that starts very cheap (

I'll also try to reach out to some people at Zeit and see if they can help come up with a solution as well. @timneutkens 😉

https://github.com/jkrup/meteor-now/issues/133

您还可以在迁移指南中阅读更多信息:https://zeit.co/docs/v2/platform/upgrade-to-2-0/

好的,所以我尝试将我的平台切换到 now 1,但对于我的帐户来说,这已经不起作用了。选项在 https://zeit.co/account 上已经禁用:

disabled platform switch on zeit account page

如果您仍然可以使用平台 v.1,您可以在 package.json 中配置一个属性 "now": { ... } 或添加一个now.jsonconfigure your now service那里。

如果您使用 now.json 配置,您可以将它放在您的项目根目录中并运行 meteor-now ... --local-config

关于javascript - Meteor-Now 部署错误 "sh: meteor: not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48128737/

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