yarnpkg/yarn

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

Open

#2,685 建立於 2017年2月12日

在 GitHub 查看
 (36 留言) (17 反應) (0 負責人)JavaScript (41,514 star) (2,731 fork)batch import
cat-featuregood first issuehelp wantedos-windowstriaged

描述

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

貢獻者指南

Windows gets unlink error when running yarn while an executable is running · yarnpkg/yarn#2685 | Good First Issue