-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
Area: JavaScript and Node.jsOS: UbuntubugSomething isn't workingSomething isn't workingbug reportexternal
Description
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
Is it regression?
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.
rubiesonthesky, Jamedjo, anurag-roy, hrishikesh-kadam, Swimburger and 1 more
Metadata
Metadata
Assignees
Labels
Area: JavaScript and Node.jsOS: UbuntubugSomething isn't workingSomething isn't workingbug reportexternal