Hi Guys,
I have a problem with install ionic via npm, below is the error once I install the ionic… Can someone advise me how to fix this problem?
Thanks.
stees-MacBook-Pro:bin stee$ npm install ionic -g
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
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! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules’
npm ERR! stack: ‘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! A complete log of this run can be found in:
npm ERR! /Users/stee/.npm/_logs/2018-02-21T07_14_12_894Z-debug.log
stees-MacBook-Pro:bin stee$ npm update ionic -g
stees-MacBook-Pro:bin stee$ ionic --version
-bash: ionic: command not found