Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I completely uninstall and then reinstall Meteor.js?

Tags:

meteor

My app started crashing for absolutely no reason. I rolled back to a version I knew worked, but it is still crashing. I cloned a version from github that I absolutely know was working because I've been working on it for a week. It won't start. Everything is 'undefined' -- Meteor, UI, Router, Template, etc. I don't have time for this. How can I completely uninstall Meteor and reinstall it from scratch?

For bonus points: why did this happen and how can I prevent it from happening again?

like image 757
tadasajon Avatar asked Jul 10 '14 21:07

tadasajon


People also ask

How to uninstall Meteor on Windows?

Uninstallation. Meanwhile in Windows OS, you can uninstall meteor by going into “Start Menu” > “Program and Features” and find the Meteor from list and double clicking on it to uninstall from system.

How do I install Meteor on Windows 10?

In a command prompt, run echo %LocalAppData%. meteor -- this is the directory in which Meteor should be installed. Extract the installation archive into the directory above. Add this directory to your PATH environment variable.


Video Answer


1 Answers

Let’s start with the deletions, then we’ll move on to the reinstallations.

  1. If you ever installed Meteorite, uninstall and delete it:

    sudo mrt uninstall sudo mrt uninstall --system rm -rf ~/.meteorite 
  2. Then delete Meteor:

    sudo rm /usr/local/bin/meteor rm -rf ~/.meteor 

Now start over at the beginning:

  1. Repair permissions if necessary:

    sudo chown -R $(whoami) ~/.npm 
  2. Reinstall Meteor:

    curl https://install.meteor.com/ | sh 
  3. Next check that your project has all its proper packages:

    cd /path/to/your/project meteor update 
  4. If your project still won’t compile, you can reset it (warning: deletes database):

    cd /path/to/your/project meteor reset 
  5. Still no luck? Recreate the Meteor project (warning: deletes database and the project’s memory of what packages you’ve installed):

    cd /path/to/your/project rm -rf ./.meteor cd .. meteor create project-new rm ./project-new/project-new.* mv ./project/* ./project-new/ cd ./project-new 

    (and run meteor add *packagename* over and over to reinstall each package you were using)

like image 136
Geoffrey Booth Avatar answered Oct 17 '22 00:10

Geoffrey Booth