【问题标题】:Trouble with mup deploy on AWS-EC2在 AWS-EC2 上部署 mup 出现问题
【发布时间】:2018-07-09 19:00:48
【问题描述】:

我正在尝试在 Amazon Web Services 上部署流星反应应用程序。 Mup 设置结果,

Started TaskList: Setup Docker
[54.69.xxx.xxx] - Setup Docker
[54.69.xxx.xxx] - Setup Docker: SUCCESS

Started TaskList: Setup Meteor
[54.69.xxx.xxx] - Setup Environment
[54.69.xxx.xxx] - Setup Environment: SUCCESS

Started TaskList: Setup Mongo
[54.69.xxx.xxx] - Setup Environment
[54.69.xxx.xxx] - Setup Environment: SUCCESS
[54.69.xxx.xxx] - Copying mongodb.conf
[54.69.xxx.xxx] - Copying mongodb.conf: SUCCESS

Started TaskList: Start Mongo
[54.69.xxx.xxx] - Start Mongo
[54.69.xxx.xxx] - Start Mongo: SUCCESS

Next, you should run:
mup deploy

但是当我运行 mup deploy 时,它建议我添加 npm 包。

Building App Bundle Locally

Unable to resolve some modules:

"babel-runtime/helpers/possibleConstructorReturn" in /home/ubuntu/meteor/ECSystems/imports/adminDashboard/dashboard/components/AdminHeader.jsx(web.browser)
"babel-runtime/helpers/inherits" in /home/ubuntu/meteor/ECSystems/imports/adminDashboard/dashboard/components /AdminHeader.jsx(web.browser)
"babel-runtime/helpers/classCallCheck" in /home/ubuntu/meteor/ECSystems/imports/adminDashboard/dashboard/components/AdminHeader.jsx(web.browser)
"react" in /home/ubuntu/meteor/ECSystems/lib/adminRoutes.js (web.browser)
"react-mounter" in /home/ubuntu/meteor/ECSystems/lib/adminRoutes.js (web.browser)
"react-dom" in /home/ubuntu/meteor/ECSystems/imports/adminDashboard/dashboard/components/AdminHeader.jsx(web.browser)
"prop-types" in /home/ubuntu/meteor/ECSystems/imports/adminDashboard/dashboard/components/DashboardLayout.jsx(web.browser)

If you notice problems related to these missing modules, consider running:

meteor npm install --save babel-runtime react react-mounter react-dom
prop-types

所以,我尝试运行以下命令,

meteor npm install --save babel-runtime react react-mounter react-dom prop-types

结果

npm ERR! Unexpected token < in JSON at position 49708

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2018-01-30T19_26_50_381Z-
debug.log

怎么办?没有得到我出错的地方。 提前致谢!

【问题讨论】:

    标签: amazon-web-services meteor npm mup


    【解决方案1】:

    转到您的应用程序目录,然后 rm package.lock 就成功了。之后我安装了所有与 react 相关的 npm 包,部署成功。 This 链接帮助了我。谢谢。

    Building App Bundle Locally
    
    Started TaskList: Pushing Meteor App
    [54.69.xxx.xxx] - Pushing Meteor App Bundle to the Server
    [54.69.xxx.xxx] - Pushing Meteor App Bundle to the Server: SUCCESS
    [54.69.xxx.xxx] - Prepare Bundle
    [54.69.xxx.xxx] - Prepare Bundle: SUCCESS
    
    Started TaskList: Configuring App
    [54.69.xxx.xxx] - Pushing the Startup Script
    [54.69.xxx.xxx] - Pushing the Startup Script: SUCCESS
    [54.69.xxx.xxx] - Sending Environment Variables
    [54.69.xxx.xxx] - Sending Environment Variables: SUCCESS
    
    Started TaskList: Start Meteor
    [54.69.xxx.xxx] - Start Meteor
    [54.69.xxx.xxx] - Start Meteor: SUCCESS
    [54.69.xxx.xxx] - Verifying Deployment
    [54.69.xxx.xxx] - Verifying Deployment: SUCCESS
    

    【讨论】:

      猜你喜欢
      • 2014-02-12
      • 2015-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-22
      • 2017-01-26
      • 2022-10-31
      • 2019-06-01
      相关资源
      最近更新 更多