Skip to content

[WIP] Fix npm install permissions error for global packages - #1

Closed
Alic3r3L1cwhk with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-npm-install-permissions
Closed

[WIP] Fix npm install permissions error for global packages#1
Alic3r3L1cwhk with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-npm-install-permissions

Conversation

Copilot AI commented Dec 1, 2025

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Original prompt

alice@RedBands:~$ npm -g i @openai/codex
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@openai/codex@0.63.0',
npm WARN EBADENGINE required: { node: '>=16' },
npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' }
npm WARN EBADENGINE }
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules'
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:
npm ERR! /home/alice/.npm/_logs/2025-12-01T10_20_56_312Z-debug-0.log
alice@RedBands:~$ npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/alice/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/alice/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /home/alice/.npm/_logs/2025-12-01T10_21_17_730Z-debug-0.log
alice@RedBands:~$


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

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