yarnpkg/yarn

Windows gets unlink error when running yarn while an executable is running

Open

#2685 aperta il 12 feb 2017

Vedi su GitHub
 (36 commenti) (17 reazioni) (0 assegnatari)JavaScript (2731 fork)batch import
cat-featuregood first issuehelp wantedos-windowstriaged

Metriche repository

Star
 (41.514 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Do you want to request a feature or report a bug? bug

What is the current behavior? When running yarn while nodemon is running I get EPERM: operation not permitted, unlink 'C:\\cygwin\\home\\Adam\\projects\\newyoc\\server\\node_modules\\.bin\\nodemon'. This causes the files in node_modules/.bin to become non executable. This forces me to quit all running processes every time I want to run yarn which is a big hit to productivity. This doesn't happen on linux.

If the current behavior is a bug, please provide the steps to reproduce.

  1. Be on windows
  2. Install nodemon
  3. Run nodemon
  4. Run yarn

What is the expected behavior? No error

Please mention your node.js, yarn and operating system version. Node: v6.9.5 Yarn: 0.19.1 OS: Windows 10

Guida contributor