我正在尝试在 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
该怎么办?没有得到我出错的地方。提前致谢!