Ionic Platfrom Web Client Error!

Hi, Am new to Ionic

I tried to install ionic using the command "add ionic-platfrom-web-client"
when i did i received the following:
You must have bower installed to continue.
Type npm install -g bower (CLI v1.7.14)

Your system information:

Cordova CLI: 6.0.0
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: 5.0.7
OS: Mac OS X El Capitan
Node Version: v5.9.0
Xcode version: Xcode 6.1 Build version 6A1052d

When i install npm install -g bower

i got the following errors:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
/usr/local/lib
└── bower@1.7.7

npm ERR! Darwin 14.5.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” "bower"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules’
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’]
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘access’,
npm ERR! path: ‘/usr/local/lib/node_modules’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/m2mn/Test/npm-debug.log

Knowing that am under Root privileges

Hey there

So you need to run npm install with sudo

sudo npm install -g bower

Much Thanks, now its working.