Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EACCES permissions error for ubuntu-latest
`npm install -g bats` Above command was failing with below logs ``` With Unicode UTF-16 support. With native language support. With support to preserve the user and group ownership of files. LOCALEDIR: /usr/share/locale http://waterlan.home.xs4all.nl/dos2unix.html npm error code EACCES npm error syscall mkdir npm error path /usr/local/share/man/man7 npm error errno -13 npm error [Error: EACCES: permission denied, mkdir '/usr/local/share/man/man7'] { npm error errno: -13, npm error code: 'EACCES', npm error syscall: 'mkdir', npm error path: '/usr/local/share/man/man7' npm error } npm error npm error The operation was rejected by your operating system. npm error It is likely you do not have the permissions to access this file as the current user npm error npm error If you believe this might be a permissions issue, please double-check the npm error permissions of the file and its containing directories, or try running npm error the command again as root/Administrator. npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-13T16_29_06_857Z-debug-0.log ``` References: 1. actions/runner-images#9644 2. https://github.com/microsoft/TypeScript/pull/58102/files 3. https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
- Loading branch information