I have installed node with sodu.
after that when i’m trying to install ember-cli i am getting this issue…
npm install -g ember-cli
npm http GET https://registry.npmjs.org/ember-cli
npm http 200 https://registry.npmjs.org/ember-cli
npm http GET https://registry.npmjs.org/ember-cli/-/ember-cli-0.0.44.tgz
npm http 200 https://registry.npmjs.org/ember-cli/-/ember-cli-0.0.44.tgz
npm WARN engine ember-cli@0.0.44: wanted: {"node":">= 0.10.0"} (current: {"node":"v0.8.21","npm":"1.1.71"})
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/ember-cli'
npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/ember-cli']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/ember-cli',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/ember-cli',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ 'DirWriter._create (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23)',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:297:15)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 3.2.0-61-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "ember-cli"
npm ERR! cwd /home/ahmed
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.1.71
npm ERR! path /usr/local/lib/node_modules/ember-cli
npm ERR! fstream_path /usr/local/lib/node_modules/ember-cli
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/ember-cli'
npm ERR! fstream_stack DirWriter._create (/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23)
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ahmed/npm-debug.log
npm ERR! not ok code 0
please help