Skip to content

A partial workaround for Windows pinning Linux directories because they are in use.

Notifications You must be signed in to change notification settings

fuzzyTew/wslunpindir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejswslfix

This makes npm install work on WSL, i.e. Ubuntu on Windows.

In WSL, calls to rename() on a directory fail if a submember of that directory is open. This is often due to concurrent behavior. In npm, it seems it can be from processing sub-dependencies at the same time as a dependency.

This library intercepts the rename() call, informs the user of what it thinks is going on, and tries again. It works to fix the issue for me.

Quick Installation

sudo apt-get install libcapstone3
sudo ln -s $(pwd)/*.so* /usr/lib

Usage

LD_PRELOAD=/usr/lib/interceptrename.so npm install

Required build dependencies

https://github.com/pmem/syscall_intercept

Building

touch interceptrename.c
make

About

A partial workaround for Windows pinning Linux directories because they are in use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published