Kesalahan: EACCES: Izin ditolak,
sudo npm install -g --unsafe-perm=true --allow-root
BlueMoon
sudo npm install -g --unsafe-perm=true --allow-root
sudo chmod -R 777 /yourProjectDirectoryName
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
npm install -g npm stable
chmod g+rwx /root /root/.config /root/.config/configstor
sudo chmod -R 777 /Users/sharatakasapu/{your node module path}
add sudo , example sudo npm i nodemon -g