如何正确安装 Meteor-Up (mup)?

Posted

技术标签:

【中文标题】如何正确安装 Meteor-Up (mup)?【英文标题】:How can I install Meteor-Up (mup) correctly? 【发布时间】:2015-04-10 19:49:22 【问题描述】:

我正在尝试安装 Meteor-Up (mup) 以将应用程序从我的 Ubuntu 14.04 笔记本电脑部署到 Ubuntu 14.04 服务器,但它似乎没有正确安装。如何正确安装mup?

我知道我需要 npm 才能安装 mup。所以,我已经成功安装了 npm:

$ sudo apt-get install npm

然后,我尝试安装 mup:

$ sudo npm install -g mup

安装日志:

npm http GET https://registry.npmjs.org/mup
npm http 304 https://registry.npmjs.org/mup
npm http GET https://registry.npmjs.org/nodemiral
npm http GET https://registry.npmjs.org/cjson
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/uuid
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/underscore/1.7.0
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/nodemiral
npm http 304 https://registry.npmjs.org/cjson
npm http 304 https://registry.npmjs.org/underscore/1.7.0
npm http GET https://registry.npmjs.org/jsonlint/1.6.0
npm http GET https://registry.npmjs.org/ejs
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/handlebars
npm http 304 https://registry.npmjs.org/ejs
npm http 304 https://registry.npmjs.org/handlebars
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/jsonlint/1.6.0
npm http GET https://registry.npmjs.org/nomnom
npm http GET https://registry.npmjs.org/JSV
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/nomnom
npm http 304 https://registry.npmjs.org/JSV
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/chalk
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/strip-ansi
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/ansi-styles
npm http 304 https://registry.npmjs.org/has-color
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/amdefine
/usr/local/bin/mup -> /usr/local/lib/node_modules/mup/bin/mup
mup@0.7.7 /usr/local/lib/node_modules/mup
├── rimraf@2.2.8
├── colors@0.6.2
├── underscore@1.7.0
├── uuid@1.4.2
├── cjson@0.3.0 (jsonlint@1.6.0)
└── nodemiral@0.3.11 (debug@0.7.4, ejs@0.8.8, handlebars@1.0.12)

此后,每当我尝试使用$ mup command$ mup -help(检查它是否安装正确)时,我都会收到以下消息:

/usr/bin/env: node: No such file or directory

我是否缺少安装过程的一部分,因为它似乎认识到 mup 是一个命令?我想知道如何解决这个问题,并且对问题的解释将是一个奖励。感谢您的帮助!

【问题讨论】:

【参考方案1】:

Node.js 未正确安装,请仔细检查您是否按照此说明正确安装了节点。

LinuxOther Operating Systems

节点未正确链接,使用此命令应该可以解决该问题。但更好的解决方案是从这些链接重新安装 Node.js。

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

现在它可以识别命令$ mup$ mup -help

【讨论】:

@Chetan 你用的是什么操作系统?【参考方案2】:

我认为您需要通过以下方式安装 nodejs:https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions

这将解决节点问题。

【讨论】:

以上是关于如何正确安装 Meteor-Up (mup)?的主要内容,如果未能解决你的问题,请参考以下文章

Meteor 使用 MUP 部署,我的集合没有部署

部署到Digital Ocean时,使用docker和mongodb的Mup错误

Ansible任务没有安装正确的包

求loki的安装方法

CentOS7编译安装Redis5及修改端口设置开机启动

登录后如何向 /wp-json/wp/v2/users/me 发出请求? (401 错误)