Skip to content

[BUG] Fails to install from ramdrive #8218

Open
@Universal-Invariant

Description

@Universal-Invariant

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:\

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions