Skip to content

After 20240403.1.0, global install of specific npm version fails with "permission denied, mkdir '/usr/local/share/man/man5'" #9644

@jakebailey

Description

@jakebailey

Description

After 20240403.1.0, global installs of specific versions of npm fail.

20240324.2.0 does not fail.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20240403.1.0

https://github.com/jakebailey/hereby/actions/runs/8577653125/job/23510511696

Is it regression?

Yes, https://github.com/jakebailey/hereby/actions/runs/8563597643/job/23469083748

Expected behavior

npm install -g npm@<version> should work.

Actual behavior

npm install -g npm@<version> fails with:

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/share/man/man5
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/share/man/man5'
npm ERR!  [Error: EACCES: permission denied, mkdir '/usr/local/share/man/man5'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/share/man/man5'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2024-04-07T09_43_22_503Z-debug-0.log
Error: Process completed with exit code 243.

Repro steps

Run npm install -g [email protected]. That's it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions