I am new to front end package managers.To install bower, we need npm in prerequisite and then bower takes charge of all the libraries on the client end. However to install grunt, I still need to install it via npm -
npm install -g grunt-cli npm
install grunt-contrib --save-dev
npm install -g grunt
I did not understand why can not we install it via bower as in:
bower install -g grunt-cli
bower install grunt-contrib --save-dev
bower install -g grunt
and manage the bower.json file insted of managing two different - bower.json and package.json?
Bower itself server side dependency which is made using node and you pull it using npm and manage client side dependency by bower
Bower is a package management system for client-side programming unlike npm (node package manager ) which is for server side dependencies
npm runs through the command line and manages dependencies for an application server side as you know nodejs is not client side
so you bower for stuff like ... jquery , angular
and npm for like ... gulp, grunt
Related
Hy
Can someone explain how to read this line npm install -g gulp bower && npm install && bower install
AFAIU, I know first part of the above installs both gulp and bower npm install -g gulp bower however I'm not sure abt the rest of that statement && npm install && bower install
thanks
npm install -g gulp bower this line will install gulp and bower globally.
npm install will install all the packages locally that are defined in package.json. Refer
bower install will install the packages locally that are defined in bower.json. Refer
The && is used to concat each of the commands to run one after another
The && just chains the commands one after the other. So it is like you have
npm install -g gulp bower
npm install
bower install
npm install will install dependencies listed in package.json.
bower install will install dependencies listed in bower.json.
I am new with Node and npm, and when I try to install packages locally, all of the dependencies for that specific package gets installed in the main nodule_modules folder.
It looks like this
LOCALLY
And if I install them globally it looks like this
GLOBALLY
I think I should mention the fact that the folder where I try to install locally is on Desktop.
If you need to install specific dependancies for a project you are working on then do it locally:
npm install <packagename>
If you need something that you can run from the commandline such as grunt or phantomjs (etc..) then install it globally:
npm install -g <packagename>
I've just installed Bower for the first time:
npm install -g bower
I created a new directory, moved into it and used npm init (for Gulp, which I'm about to install) and then told Bower to install Bootstrap from inside the directory:
bower install bootstrap
According to the documentation it should install packages to bower_components/ but instead they got placed into raw/bower_components/. Why?
I'm new to Bower and am wondering if I've done something wrong? And also if I'm safe to move the bower_components/ directory?
I am looking to use yeoman with the generator-marionette.
I am on debian 7
I have installed nodejs v0.10.28 and npm 1.4.9. and
grunt-cli (global)
then i installed bower : npm install -g bower
bower help works fine
bower install gives Nothing (no packages installation, no error message) (bower.json exists)
bower install jquery gives the same result.
Does someone has an idea of what appends and a solution to solve this problem ?
I'm using node/grunt for deploying to a shared hosting server.
I have node installed in $HOME/opt/node
I don't know where npm install -g grunt is going to install it to, or how to tell npm to install global files to $HOME/some/path.
I ran npm install grunt -g and it seemed to work, but I cannot find the grunt binary anywhere.
If you want the grunt command in your server's shell, you'll need to install the Grunt CLI.
npm install grunt-cli -g
Global modules are located here:
/usr/local/lib/node_modules