Skip to content

node_modules/@types cannot be deleted on Windows #29407

@Tyriar

Description

@Tyriar

Workaround: Run this command to release the lock on the file:

Screen Shot 2019-04-12 at 9 15 24 AM


Issue Type: Bug

Probably related to automatic type acquisition. I've been seeing this frequently only on Windows:

PS D:\dev\Tyriar\xterm.js> yarn
yarn install v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding
it from installation.
[3/4] Linking dependencies...
error An unexpected error occurred: "EPERM: operation not permitted, scandir 'D:\\dev\\Tyriar\\xterm.js\\node_modules\\@types'".
info If you think this is a bug, please open a bug report with the information provided in "D:\\dev\\Tyriar\\xterm.js\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
PS D:\dev\Tyriar\xterm.js>

This is what explorer tells me when I try to go to that folder:

image

When I close vscode, the @types folder deletes itself.

VS Code version: Code - Insiders 1.31.0-insider (e02e444, 2018-12-21T06:20:35.852Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz (4 x 3398)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.94GB (9.26GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (11)
Extension Author (truncated) Version
vscode-svgviewer css 1.4.7
emulate Die 0.0.7
EditorConfig Edi 0.12.6
tslint eg2 1.0.42
vscode-npm-script eg2 0.3.5
git-project-manager fel 1.7.1
vscode-pull-request-github-insiders Git 0.354.0
cpptools ms- 0.21.0-insiders2
material-icon-theme PKi 3.6.2
polacode pnp 0.2.2
vscode-todo-highlight way 1.0.4

(1 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptExternalRelates to another program, environment, or user action which we cannot control.VS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions