EACCES: permission denied with sudo in Ubuntu
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- cli
Research direction
Start by reproducing sudo npm install -g @rocket.chat/apps-cli on Ubuntu and inspect the esbuild postinstall output, especially node_modules/esbuild/install.js and the /usr/local/lib/node_modules path shown in the report. Done means the global installation completes without the reported EACCES errors, with a focused test or documented reproduction confirming the behavior.
Written by the indexing model from the issue text.
Description
sudo npm install -g @rocket.chat/apps-cli
esbuild@0.12.29 postinstall /usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild
node install.js
Trying to install "esbuild-linux-64" using npm
Failed to install "esbuild-linux-64" using npm: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild/esbuild-qssd7mdeech'
Trying to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.12.29.tgz"
/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild/install.js:198
throw e;
^
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild/bin/esbuild__'
at Object.openSync (fs.js:498:3)
at Object.writeFileSync (fs.js:1529:35)
at installBinaryFromPackage (/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild/install.js:61:6)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/usr/local/lib/node_modules/@rocket.chat/apps-cli/node_modules/esbuild/bin/esbuild__'
}
- Dominant language
- TypeScript
- Stars
- 49
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RocketChat/Rocket.Chat.Apps-cli
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RocketChat/Rocket.Chat.Apps-cli#181 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
RocketChat/Rocket.Chat.Apps-cli#177 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
RocketChat/Rocket.Chat.Apps-cli#173 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
All issues in RocketChat/Rocket.Chat.Apps-cli
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·