gpt4 book ai didi

ubuntu - 使用 mupx 将 meteor 部署到 AWS ubuntu 时出现错误跟踪

转载 作者:行者123 更新时间:2023-12-04 18:51:19 24 4
gpt4 key购买 nike

我尝试为 npm mupx 将 meteor 部署到 aws ubuntu。当我尝试部署到 aws ubuntu 时,出现错误。这是我的错误代码,对此有任何想法吗?请帮我。

[**.**.**.*] 2016-08-04T08:04:44.262760219Z npm WARN deprecated This version of npm lacks support for important features,
[**.**.**.*] 2016-08-04T08:04:44.263078622Z npm WARN deprecated such as scoped packages, offered by the primary npm
[**.**.**.*] 2016-08-04T08:04:44.263608859Z npm WARN deprecated registry. Consider upgrading to at least npm@2, if not the
[**.**.**.*] 2016-08-04T08:04:44.263841265Z npm WARN deprecated latest stable version. To upgrade to npm@2, run:
[**.**.**.*] 2016-08-04T08:04:44.264022091Z npm WARN deprecated
[**.**.**.*] 2016-08-04T08:04:44.264214145Z npm WARN deprecated npm -g install npm@latest-2
[**.**.**.*] 2016-08-04T08:04:44.264388418Z npm WARN deprecated
[**.**.**.*] 2016-08-04T08:04:44.264582942Z npm WARN deprecated To upgrade to the latest stable version, run:
[**.**.**.*] 2016-08-04T08:04:44.264753708Z npm WARN deprecated
[**.**.**.*] 2016-08-04T08:04:44.264955187Z npm WARN deprecated npm -g install npm@latest
[**.**.**.*] 2016-08-04T08:04:44.265132059Z npm WARN deprecated
[**.**.**.*] 2016-08-04T08:04:44.265319246Z npm WARN deprecated (Depending on how Node.js was installed on your system, you
[**.**.**.*] 2016-08-04T08:04:44.265507812Z npm WARN deprecated may need to prefix the preceding commands with `sudo`, or if
[**.**.**.*] 2016-08-04T08:04:44.265698699Z npm WARN deprecated on Windows, run them from an Administrator prompt.)
[**.**.**.*] 2016-08-04T08:04:44.265870846Z npm WARN deprecated
[**.**.**.*] 2016-08-04T08:04:44.266053678Z npm WARN deprecated If you're running the version of npm bundled with
[**.**.**.*] 2016-08-04T08:04:44.266249940Z npm WARN deprecated Node.js 0.10 LTS, be aware that the next version of 0.10 LTS
[**.**.**.*] 2016-08-04T08:04:44.266454393Z npm WARN deprecated will be bundled with a version of npm@2, which has some small
[**.**.**.*] 2016-08-04T08:04:44.266764265Z npm WARN deprecated backwards-incompatible changes made to `npm run-script` and
[**.**.**.*] 2016-08-04T08:04:44.266962265Z npm WARN deprecated semver behavior.
[**.**.**.*] 2016-08-04T08:04:44.500691274Z npm WARN package.json meteor-dev-bundle@0.0.0 No description
[**.**.**.*] 2016-08-04T08:04:44.504356284Z npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
[**.**.**.*] 2016-08-04T08:04:44.507612660Z npm WARN package.json meteor-dev-bundle@0.0.0 No README data
[**.**.**.*] 2016-08-04T08:04:44.597973214Z npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
[**.**.**.*] 2016-08-04T08:04:44.615599841Z => Starting meteor app on port:80
[**.**.**.*] 2016-08-04T08:04:44.675588035Z
[**.**.**.*] 2016-08-04T08:04:44.675961880Z assert.js:93
[**.**.**.*] 2016-08-04T08:04:44.676233801Z throw new assert.AssertionError({
[**.**.**.*] 2016-08-04T08:04:44.676351801Z ^
[**.**.**.*] 2016-08-04T08:04:44.677859197Z AssertionError: "undefined" === "function"
[**.**.**.*] 2016-08-04T08:04:44.677870250Z at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
[**.**.**.*] 2016-08-04T08:04:44.677874284Z at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
[**.**.**.*] 2016-08-04T08:04:44.677892655Z at Module._compile (module.js:456:26)
[**.**.**.*] 2016-08-04T08:04:44.677896149Z at Object.Module._extensions..js (module.js:474:10)
[**.**.**.*] 2016-08-04T08:04:44.677898899Z at Module.load (module.js:356:32)
[**.**.**.*] 2016-08-04T08:04:44.677901570Z at Function.Module._load (module.js:312:12)
[**.**.**.*] 2016-08-04T08:04:44.677904229Z at Module.require (module.js:364:17)
[**.**.**.*] 2016-08-04T08:04:44.677906984Z at require (module.js:380:17)
[**.**.**.*] 2016-08-04T08:04:44.677909741Z at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
[**.**.**.*] 2016-08-04T08:04:44.677912674Z at Module._compile (module.js:456:26)

如果您对这笔交易有任何想法,请告诉我任何解决方案!

最佳答案

我今天只是在同样的事情上挣扎了几个小时。

您当前的部署具有节点版本 v0.x.x(在 MupX 中硬编码),而 Meteor 1.4 需要 v4.4.7。据我所知,这是主要原因。

我是如何解决这个问题的:我用 mongodump 备份,将它下载到我的计算机,从服务器上删除所有内容,安装 Mup由 KadiraHQ(昨天更新)进行了设置,并将此 docker 镜像包含在选项中:

dockerImage: 'abernix/meteord:base'

然后我做了 mup 部署 mongorestore导入数据库。

您也可以查看 this issue尤其是 abernix 的评论。

请注意,对于 pem 和路径,Mup 不允许您在路径中使用 ~ 并且不会给您一个可搜索的错误。您需要像这样编写完整的 URL:
pem: '/Users/luna/.ssh/id_rsa'

希望这会有所帮助,如果您在某个地方遇到困难,请告诉我。

关于ubuntu - 使用 mupx 将 meteor 部署到 AWS ubuntu 时出现错误跟踪,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38761957/

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