Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install, update or run Meteor after update

Tags:

meteor

I have been working with Meteor apps for a few months. For the first time, anytime I try to run a meteor app, install via (curl https://install.meteor.com | /bin/sh) or run meteor update, I get this error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'fibers'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/usr/local/meteor/app/meteor/meteor.js:1:75)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.runMain (module.js:492:10)

In the past I'd get random js errors and reinstalling would fix, but I cannot even run the installer or update now. Perhaps it is related to 0.6. Thanks for any insight!

like image 755
ppedrazzi Avatar asked Apr 06 '13 14:04

ppedrazzi


2 Answers

This solution worked for me:

  1. Install the latest Node via the graphical installer at http://nodejs.org/ EDIT: should not be necessary.
  2. Install Fibers via sudo npm install [email protected] -g per @Akshat EDIT: should not be necessary.
  3. Delete the file /usr/local/bin/meteor
  4. Delete the folder ~/.meteor
  5. curl https://install.meteor.com/ | sh
like image 182
Geoffrey Booth Avatar answered Oct 22 '22 13:10

Geoffrey Booth


I had this happen (again) and did more research. I ended up doing these two steps to address it:

Remove Meteor:

rm -rf /usr/local/meteor /usr/local/bin/meteor

Install Meteor:

curl https://install.meteor.com | /bin/sh
like image 31
ppedrazzi Avatar answered Oct 22 '22 14:10

ppedrazzi