0

how can i fix the following issue problem on my macbook i am using flutter.

when i run this command: npm install -g firebase-tools it shows me the following Errors

 npm ERR! code EACCES 
npm ERR! syscall mkdir
 npm ERR! path /usr/local/lib/node_modules/firebase-tools 
npm ERR! errno -13 
npm ERR! Error: EACCES: permission denied,
 mkdir '/usr/local/lib/node_mod

I try running different commands like

Run vim ~/.zshrc Press i Paste export PATH="$PATH":"$HOME/.pub-cache/bin" Press esc Type :wq! and press enter Restart the terminal

but still it does not work

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441

0 Answers0