-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
After forking and cloning the repository, running npm install results in an EACCES permission error when trying to create the node_modules/@docusaurus directory.
Steps to Reproduce
- Fork the repository
- Clone the forked repository
- Run
npm install
Error Message
npm error code EACCES
npm error syscall mkdir
npm error path /home/limon/fork/recode-website/node_modules/@docusaurus
npm error errno -13
npm error Error: EACCES: permission denied, mkdir '/home/limon/fork/recode-website/node_modules/@docusaurus'
npm error at async mkdir (node:internal/fs/promises:860:10)
npm error at async /home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:624:20
npm error at async Promise.allSettled (index 0)
npm error at async [reifyPackages] (/home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
npm error at async Arborist.reify (/home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)
npm error at async Install.exec (/home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async Npm.exec (/home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/lib/npm.js:207:9)
npm error at async module.exports (/home/limon/.local/share/mise/installs/node/22.20.0/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error errno: -13,
npm error code: 'EACCES',
npm error syscall: 'mkdir',
npm error path: '/home/limon/fork/recode-website/node_modules/@docusaurus'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /home/limon/.npm/_logs/2025-10-04T05_55_57_796Z-debug-0.log
Expected behavior
Expected Behavior
npm install should complete successfully without permission errors
Actual Behavior
Permission denied error when creating node_modules directories
Environment
- OS: Omarchy(Arch Linux)
- Node version: v22.20.0
Possible Solution
This might be caused by:
- node_modules being accidentally committed to the repository
- Incorrect folder permissions after cloning
- remove node_modules directory from git repository
Add ScreenShots
What browsers are you seeing the problem on?
No response
Record
- I have read the Contributing Guidelines
- Are you a GSSOC'25 contributor
- I want to work on this issue
Metadata
Metadata
Assignees
Labels
hacktoberfest-acceptedlevel 110 points10 pointsrecodethis is label for leaderboardthis is label for leaderboard