The error Unable to write file (NoPermissions (FileSystemError): Error: EACCES: permission denied or Failed to save file, EACCESS permision denied occurs sometimes while saving the file in vscode. The solve this error given the user permission to the folder you are saving by running the below command.
sudo chown -R user_name /path/to/folder
Use the below commands if the above one doesn’t solve in your case.
sudo setfacl -R -m u:username:rwx /path/to/directory
sudo chmod -R 777 /path/to/directory
If you using Nodejs and getting EACCESS permision denied issue then use:
sudo npm install -g --unsafe-perm=true --allow-root
Apply executable permissions to the binary: permission denied