Why did Bower install to raw/bower_components/? - node.js

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?

Related

How does multiple install command in a single npm statement work?

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.

installing node but missing all packages in node_modules

On the Mac, after installing node with:
brew install node
The only package that showed up in /usr/local/lib/node_modules is npm. My previous installation of node contained a bunch of packages such "express, apn, http2, ws, etc."
Any ideas?
There was not a package.json either.
When you install node you only get npm, those other packages you mention, were installed using
# probably with sudo
npm install -g {package}
The package.json is created when you run:
npm init
It has nothing to do with node installation.
If you wish to start a new project:
mkdir project
cd project
npm init
npm install {package-name} {other-package}
And now you will have a node_modules folder inside project/ and a package.json with {package-name} & {other-package} as dependencies

How to install and use bower in windows 7

I'm a beginner in using bower and had searched all over the internet for installing the bower but couldn't find step by step method for installing the bower. If you please help me for this I shall be very thankful to everyone.
First you need to install node.js which you can do here: https://nodejs.org/en/download/.
Once you have node installed you need to open a command prompt window. To install bower you enter the command npm install -g bower
Follow the steps below to get Node/NPM, Bower & Git up and running for a new project.
1.Download & Install Node.js
2.Install Bower Globally - npm install -g bower
3.Download & Install Git
4.Create your Project Directory and cd into the project directory just created.
5.Initialize Git in your project - git init
6.Initialize your package.json for NPM dependencies -
npm init (Answer the questions that it asks)
7.Initialize your bower.json for Bower dependencies - bower init (Answer the questions that it asks)
package.json & bower.json Docs
NPM package.json Docs
Bower bower.json Docs

Why does grunt not get installed via bower.js?

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

bower installed but doesn't install package

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 ?

Resources