-1

When I try to add useraccounts:bootstrap to my meteor project, I receive the following error...

Error: Can't find npm module 'request'. Did you forget to call 'Npm.depends' in package.js within the 'http' package?

What can I do to fix this?

Serks
  • 333
  • 2
  • 21
  • Your request is sparse with information, but it would seem to me like there's another error preventing meteor from building and thus, including that module. Have you tried running `meteor create` for a new app and then installing useraccounts:bootstrap? – thatgibbyguy Jan 18 '16 at 00:45
  • I just tried what you have suggested...created a new app, and added only useraccounts:bootstrap. I get the exact same error. – Serks Jan 18 '16 at 13:04
  • make a new app and then open `your-app-directory/.meteor/packages` in a text editor. from there, manually add `useraccounts:bootstrap` . Basically I'm just giving you troubleshooting steps. Without seeing the code of your app I can't do much for you. – thatgibbyguy Jan 18 '16 at 20:00
  • That's exactly what I did and it didn't work. I ended up following the instructions from [this post](http://stackoverflow.com/questions/31369872/meteor-wont-start-fibers-futures-js-throws-error-error-sqlite-corrupt-dat) and deleted the .meteor/package-metadata folder. This fixed the problem. Thanks – Serks Jan 18 '16 at 23:35
  • If you created a new app from scratch the problem your answer solves would not have been present. This is because nothing is in the package-metadata folder until meteor builds the app. – thatgibbyguy Jan 19 '16 at 02:25
  • hmm maybe my directory structure is not up to standard. The .meteor/package-metadata folder is actually outside of the new app's folder. So basically, even though I created a new app, another apps data is still in the package-metadata folder. So theres a main .meteor folder, and then theres a .meteor folder within each apps folder. – Serks Jan 20 '16 at 11:58

1 Answers1

0

I ended up following the instructions from this post and deleted the package-metadata folder within the main .meteor folder (OSX/Users/MacBookPro/.meteor).

Restarted the server (waited about 30 minutes to restart) and the error was gone.

Community
  • 1
  • 1
Serks
  • 333
  • 2
  • 21