To solve the Apply executable permissions to the binary: permission denied error. Try to add the executable permission to the specified folder using chmod or chown.
Run the below command if you are facing issue with docker: Apply executable permissions to docker-compose binary then run:
sudo chmod +x /usr/local/bin/docker-compose
To any other node modules then use:
sudo chown -R $USER /usr/local/lib/node_modules
Similar Errors:
npm ERR! Error: EACCES: permission denied