I\'ve downloaded Bootstrap source files from the official website and I\'m getting dependency conflicts when installing the project using node\'s npm
. I have
You may have Grunt 0.4.3
installed globally but nothing installed locally.
$ grunt --version
to find which version you are on (not a necessary step).Create a package.json
file in the root of the folder you mean to have your project on.
{
"name" : "MyProject",
"version" : "0.1.0",
"author" : "My name",
"private" : true,
"devDependencies" : {
"grunt" : "~0.4.2"
}
}
Run $ npm install
while at the project's root folder.
Done!
--- UPDATE ---
You could use Bower to install Bootstrap for you. It makes cumbersome installations a breeze. Bootstrap's Getting Started guide advises using it!
$ bower install bootstrap
Here is a blog post that might be relevant to you: Using Grunt + Bower with Laravel and Bootstrap
Or you could always opt to let Grunt
manage the installation of Bootstrap
and maintain it as a dependency... There are several plugins out there that do the heavy-lifting.