Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install Meteor-Up (mup) correctly?

I am trying to install Meteor-Up (mup) for deploying an app from my Ubuntu 14.04 laptop to a Ubuntu 14.04 server, but it does not seem to install correctly. How can I install mup correctly?

I know that I need npm to in order to install mup. So, I have successfully installed npm with:

$ sudo apt-get install npm

Then, I try to install mup with:

$ sudo npm install -g mup

Install log:

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
[email protected] /usr/local/lib/node_modules/mup
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected])

After this whenever I try to use the $ mup command or $ mup -help (to check that it installed properly), I get the following message:

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

Am I missing part of the installation process, since it seems to recognize that mup is a command? I would like to know how to fix this issue and an explanation of the problem would be a bonus. Thank you for any help!

like image 526
David C Avatar asked Feb 10 '15 16:02

David C


People also ask

What version of Meteor does MUP support?

Mup supports Meteor 1.2 and newer, though you might need to change the docker image in your mup config. This is the default docker image. When using Meteor 1.2, app.buildOptions.serverOnly should be false.

How do I deploy a meteor application with Galaxy?

Once you are setup with Galaxy, deployment is simple (just re-run the meteor deploy command above), as is scaling — log into galaxy.meteor.com, and scale instantly from there. Meteor Up, often referred to as “mup”, is a third-party, open-source tool that can be used to deploy Meteor applications to any online server over SSH.

Why can’t I run MUP on Meteor-up?

If it is, either your app or a package it uses has force-ssl as a dependency. mup is not backward compatible with Meteor Up 0.x. or mupx. Now we don’t re-build binaries. Instead, we build for the os.linux.x86_64 architecture. (This is the same thing what meteor-deploy does) Use a new server if you can.

What do I need to set up a Meteor website?

The environment you choose will need the correct version of Node.js and connectivity to a MongoDB server. Depending on the version of Meteor you are using, you should install the proper version of node using the appropriate installation process for your platform.


2 Answers

Node.js was not installed properly, double check to see if you have installed node properly following this instructions.

Linux
Other Operating Systems

Node is not properly linked, using this command should fix that. But a better solution is to reinstall Node.js from those links.

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

Now it recognizes the commands $ mup and $ mup -help.

like image 122
David C Avatar answered Oct 22 '22 08:10

David C


I think you need to install nodejs via this: https://github.com/joyent/node/wiki/installing-node.js-via-package-manager#debian-and-ubuntu-based-linux-distributions

That'll fix the node issue.

like image 35
Arunoda Susiripala Avatar answered Oct 22 '22 06:10

Arunoda Susiripala