【问题标题】:Deploying a meteor 1.2 app to Ubuntu 16.04将流星 1.2 应用程序部署到 Ubuntu 16.04
【发布时间】:2018-02-15 10:41:02
【问题描述】:

我有一个仍处于流星 1.2 的应用程序,我曾经用 mup 愉快地部署到 ubuntu 14.04 服务器。但是,我现在已将主机服务器移至 16.04,并且 mup(以及 mupc)已停止工作。

我上次部署其中一个应用程序时,我遵循了以下步骤,并且运行良好。

apt install nodejs nodejs-legacy
install nvm
nvm install v0.10.40

Bundle the app on my dev box, and unpack it on the host
cd /app/programs/server
npm install

我明白了

> fibers@1.0.5 install /opt/sapwfdashboard/programs/server/node_modules/fibers
> node ./build.js

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
internal/child_process.js:298
    throw errnoException(err, 'spawn');
    ^

Error: spawn EACCES
    at exports._errnoException (util.js:870:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at Object.exports.spawn (child_process.js:362:9)
    at build (/opt/sapwfdashboard/programs/server/node_modules/fibers/build.js:55:5)
    at Object.<anonymous> (/opt/sapwfdashboard/programs/server/node_modules/fibers/build.js:47:3)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)

npm ERR! fibers@1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 install script.
npm ERR! This is most likely a problem with the fibers package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls fibers
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.0-109-generic
npm ERR! command "/root/.nvm/v0.10.40/bin/node" "/root/.nvm/v0.10.40/bin/npm" "install"
npm ERR! cwd /opt/sapwfdashboard/programs/server
npm ERR! node -v v0.10.40
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

我被困住了。任何想法如何解决这个问题。我将不得不升级这个应用程序,因为现在无法进行初始部署。

【问题讨论】:

  • 您必须在您的服务器上安装与本地 Meteor 系统使用相同的节点版本。检查您的开发机器meteor node -v,它会为您提供正确的版本。在您的服务器上安装此版本。
  • npm install之前尝试nvm use v0.10.40
  • 我已经这样做了,从输出中的版本可以看出。

标签: node.js meteor npm ubuntu-16.04


【解决方案1】:

我发现部署它的最佳方法是使用 mupc 设置实例,然后从那里开始使用手动部署过程。

我还要弄清楚有什么区别。

【讨论】:

    猜你喜欢
    • 2018-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 2017-08-11
    • 2015-06-06
    • 1970-01-01
    • 2018-03-30
    相关资源
    最近更新 更多