Open Meteor - mrt add bootstrap - Install error

I just started the Discover Meteor tutorial, and when I try:

mrt add bootstrap 

I get the following error:

 usr/local/lib/node_modules/meteorite/lib/project.js:225 throw("Package named " + pkgName + " doesn't exist in your meteor in ^ Package named bootstrap doesn't exist in your meteor installation, smart.json, or on atmosphere 

Any thoughts? Thanks.

+5
source share
3 answers

update 3/2/14:

It seems that now the book supports the official bootstrap package , which you can get through:

 $ meteor add twbs:bootstrap 

old answer:

It seems that they did not update the book for the new packaging system. You have options when it comes to which version of the bootstrap to use. I'm not sure which one the book expects, but you can try the default that comes with the meteor:

 $ meteor add bootstrap 

Note that we are replacing the mrt meteor.

If you want to download bootstrap 3, you can try:

 $ meteor add mizzao:bootstrap-3 
+9
source
 mrt add bootstrap-3 

works for me. Hope this help!

+2
source

I had the same problem, but fortunately found a solution quite easily. It seems that the Meteorite package manager works with packages that have already been added to your local project using meteor add <packageName> and allow you to more conveniently manage them using smart.json and smart.lock . Therefore, the steps you must take are as follows:

  • Install the boot with meteor add bootstrap in your project (this operation is not written to smart.json );
  • Run the mrt add bootstrap command (this command will write your boot package to smart.json and smart.lock to simplify package management with Meteorite).
+1
source

Source: https://habr.com/ru/post/1202722/


All Articles