Skip to content

fix(setup-node): cannot install npm into system folder#19

Merged
damienwebdev merged 2 commits into
graycoreio:mainfrom
griest024:fix/setup-node/no-install-system
May 29, 2026
Merged

fix(setup-node): cannot install npm into system folder#19
damienwebdev merged 2 commits into
graycoreio:mainfrom
griest024:fix/setup-node/no-install-system

Conversation

@griest024
Copy link
Copy Markdown
Member

fixes https://github.com/graycoreio/daffodil/actions/runs/26543349095/job/78189721589?pr=4452:

Run npx npm -g i npm@11
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     at async mkdir (node:internal/fs/promises:858:10)
npm error     at async Promise.all (index 0)
npm error     at async Promise.all (index 1)
npm error     at async #createBinLinks (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:402:5)
npm error     at async Promise.allSettled (index 0)
npm error     at async #linkAllBins (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:376:5)
npm error     at async #build (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:161:7)
npm error     at async Arborist.rebuild (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:63:5)
npm error     at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:334:11)
npm error     at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:149:5) {
npm error   errno: -13,
npm error   code: 'EACCES',
npm error   syscall: 'mkdir',
npm error   path: '/usr/local/share/man/man7'
npm error }

Another potential fix is to use a version manager to install node but that seems less desirable for CI: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally

Copy link
Copy Markdown
Member

@damienwebdev damienwebdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@damienwebdev damienwebdev merged commit 0874b0c into graycoreio:main May 29, 2026
7 checks passed
@gray-bot gray-bot mentioned this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants