Skip to content

[BUG] Fails to install from ramdrive #8218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
Universal-Invariant opened this issue Apr 9, 2025 · 0 comments
Open
2 tasks done

[BUG] Fails to install from ramdrive #8218

Universal-Invariant opened this issue Apr 9, 2025 · 0 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps

Comments

@Universal-Invariant
Copy link

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

Z:> npm install electron --save-dev
npm error code EPERM
npm error syscall mkdir
npm error path Z:
npm error errno -4048
npm error Error: EPERM: operation not permitted, mkdir 'Z:'
npm error at async mkdir (node:internal/fs/promises:853:10)
npm error at async Arborist.reify nvm\v23.10.0\node_modules\npm\node_modules@npmcli\arborist\lib\arborist\reify.js:126:7)
npm error at async Install.exec
\nvm\v23.10.0\node_modules\npm\lib\commands\install.js:149:5)
npm error at async Npm.exec (nvm\v23.10.0\node_modules\npm\lib\npm.js:208:9)
npm error at async module.exports (\nvm\v23.10.0\node_modules\npm\lib\cli\entry.js:67:5) {
npm error errno: -4048,
npm error code: 'EPERM',
npm error syscall: 'mkdir',
npm error path: 'Z:\'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It's possible that the file was already in use (by a text editor or antivirus),
npm error or that you lack permissions to access it.
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.

Z: is a ramdrive(ImDisk).

Obviously making directories and downloading files should not fail and in general it does work. I can also use the command on a normal drive. The FS is NTFS. It does have some issues with some programs here and there(it is rare but every once in a while something doesn't quite work... typically related to the recycle bin).

Expected Behavior

It should work. The ramdrive should not interfer with standard file operations.

Steps To Reproduce

Install ImDisk RamDisk, use npm install from it.

Environment

; node version = v23.10.0
; npm local prefix = Z:
; npm version = 11.2.0
; cwd = Z:\

@Universal-Invariant Universal-Invariant added Bug thing that needs fixing Needs Triage needs review for next steps labels Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

1 participant