-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
Randomly ERROR and cannot execute global installed package (Ex: tslint)
C:\Users\myname>yarn global ls
yarn global v0.15.1
warning No license field
Done in 0.05s.
C:\Users\myname>yarn global add tslint
yarn global v0.15.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning Unmet peer dependency "typescript@>=1.7.3".
[4/4] Building fresh packages...
success Installed tslint@3.15.1 with binaries:
- tslint
Done in 2.67s.
C:\Users\myname>yarn global add typescript
yarn global v0.15.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error ENOENT: no such file or directory, open 'C:\Users\myname\AppData\Local\Yarn\.global\node_modules\balanced-match\.np mignore'
at Error (native)
info Visit http://yarnpkg.com/en/docs/cli/global for documentation about this command.
C:\Users\myname>yarn global add typescript
yarn global v0.15.1
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed typescript@2.0.3 with binaries:
- tsc
- tsserver
Done in 2.89s.
C:\Users\myname>yarn global ls
yarn global v0.15.1
warning No license field
error ENOENT: no such file or directory, open 'C:\Users\myname\AppData\Local\Yarn\.global\node_modules\balanced-match\.npmignore'
at Error (native)
info Visit http://yarnpkg.com/en/docs/cli/global for documentation about this command.
C:\Users\myname>yarn global ls
yarn global v0.15.1
warning No license field
info tslint@3.15.1 has binaries:
- tslint
info typescript@2.0.3 has binaries:
- tsc
- tsserver
Done in 1.61s.
C:\Users\myname>tslint
< NO OUTPUT, because it forces exiting my cmd >
If the current behavior is a bug, please provide the steps to reproduce.
Try to install a global package, and execute it.
What is the expected behavior?
npm works perfectly. yarn's installed package causes exit my cmd / powershell.
Please mention your node.js, yarn and operating system version.
- Windows 10 Pro x64
- node v6.8.1
- yarn v0.15.1
BharatKalluri, tekacs, markfknight, laggingreflex, guzuomuse and 9 more