Error during ionic installation


#1

I’m having a problem installing ionic when I run npm install -g cordova ionic it installs but the ionic start command can’t be found so I run npm install -g cordova ionic gulp and this error shows

npm ERR! Darwin 15.4.0
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “-g” “cordova” “ionic” "gulp"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! path /Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink

npm ERR! Error: EACCES: permission denied, unlink '/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, unlink ‘/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’]
npm ERR! errno: -13,
npm ERR! code: ‘EACCES’,
npm ERR! syscall: ‘unlink’,
npm ERR! path: ‘/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back { [Error: EACCES: permission denied, unlink ‘/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’]
npm ERR! error rolling back errno: -13,
npm ERR! error rolling back code: ‘EACCES’,
npm ERR! error rolling back syscall: ‘unlink’,
npm ERR! error rolling back path: ‘/Users/SlyFusion/.npm-packages/lib/node_modules/ionic/.gitattributes’ }

npm ERR! Please include the following file with any support request:
npm ERR! /usr/local/bin/npm-debug.log

can anyone help me with this