npm ERR! Darwin 20.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ionic@3.20.0"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! path /usr/local/lib/node_modules/ionic
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/ionic'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/ionic'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/ionic' }
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/mikrontech/npm-debug.log
mikrontech@Oluwoles-MBP ~ % node -v
v6.17.1
Asked
Active
Viewed 51 times
0

Konrad
- 21,590
- 4
- 28
- 64
-
Please provide enough code so others can better understand or reproduce the problem. – Community Sep 14 '21 at 10:20
-
As per your console log, you can try to add "sudo" before your command so it's gives admin access. – Avinash Tribhuvan Sep 08 '22 at 14:02