-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next steps
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
Getting this error when runninig npm install in vite folder.
npm warn tar TAR_ENTRY_ERROR EBADF: bad file descriptor, write
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup 'G:\\My Drive\\Python scripts-tests\\React projects\\vite-project\\node_modules\\eslint',
npm warn cleanup [Error: EPERM: operation not permitted,
rmdir 'G:\My Drive\Python scripts-tests\React projects\vite-pnpm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup path: 'G:\\My Drive\\Python scripts-tests\\React projects\\vite-project\\node_modules\\eslint\\lib\npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '\\\\?\\G:\\My Drive\\Python scripts-tests\\React projects\\vite-project\\node_modules\\@types',
npm warn cleanup [Error: EPERM: operation not permitted,
rmdir 'G:\My Drive\Python scripts-tests\React projects\vite-project\node_modules\@types\react\ts5.0'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'G:\\My Drive\\Python scripts-tests\\React projects\\vite-project\\node_modules\\@types\\react\\ts5.0'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm error code EBADF
npm error syscall write
npm error errno -4083
npm error EBADF: bad file descriptor, write
npm error A complete log of this run can be found in: C:\Users\Fuad\AppData\Local\npm-cache\_logs\2025-07-20T16_27_59_621Z-debug-0.log```
### Expected Behavior
installing packages successfully.
### Steps To Reproduce
In terminal run:
1 create vite-project
2 cd vite-project
3 npm install
### Environment
- npm: 10.9.2
- Node.js: v22.17.1
- OS Name: Windows
- System Model Name: Windows 10 x64
- npm config:
```ini
; copy and paste output from `npm config ls` here
; "builtin" config from C:\Program Files\nodejs\node_modules\npm\npmrc
prefix = "C:\\Users\\Fuad\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; node version = v22.17.1
; npm local prefix = G:\My Drive\Python scripts-tests\React projects\vite-project
; npm version = 10.9.2
; cwd = G:\My Drive\Python scripts-tests\React projects\vite-project
; HOME = C:\Users\Fuad
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next steps