{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2224","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2224/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2224/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2224/events","html_url":"https://github.com/yarnpkg/yarn/issues/2224","id":194863869,"node_id":"MDU6SXNzdWUxOTQ4NjM4Njk=","number":2224,"title":"Can not run globally installed pacakges which are installed with yarn","user":{"login":"sharikovvladislav","id":5622526,"node_id":"MDQ6VXNlcjU2MjI1MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/5622526?v=4","gravatar_id":"","url":"https://api.github.com/users/sharikovvladislav","html_url":"https://github.com/sharikovvladislav","followers_url":"https://api.github.com/users/sharikovvladislav/followers","following_url":"https://api.github.com/users/sharikovvladislav/following{/other_user}","gists_url":"https://api.github.com/users/sharikovvladislav/gists{/gist_id}","starred_url":"https://api.github.com/users/sharikovvladislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sharikovvladislav/subscriptions","organizations_url":"https://api.github.com/users/sharikovvladislav/orgs","repos_url":"https://api.github.com/users/sharikovvladislav/repos","events_url":"https://api.github.com/users/sharikovvladislav/events{/privacy}","received_events_url":"https://api.github.com/users/sharikovvladislav/received_events","type":"User","site_admin":false},"labels":[{"id":313603437,"node_id":"MDU6TGFiZWwzMTM2MDM0Mzc=","url":"https://api.github.com/repos/yarnpkg/yarn/labels/cat-bug","name":"cat-bug","color":"d93f0b","default":false},{"id":459474536,"node_id":"MDU6TGFiZWw0NTk0NzQ1MzY=","url":"https://api.github.com/repos/yarnpkg/yarn/labels/os-windows","name":"os-windows","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":35,"created_at":"2016-12-11T23:06:22Z","updated_at":"2018-09-30T02:10:30Z","closed_at":null,"author_association":"NONE","body":"<!-- *Before creating an issue please make sure you are using the latest version of yarn.* -->\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n<!-- Is the feature a substantial feature request? Please use https://github.com/yarnpkg/rfcs -->\r\nBug\r\n\r\n**What is the current behavior?**\r\nI can not run globally installed packages (uglifyjs, eslint etc).\r\n\r\nLooks like there are problems with path. When I run (you full steps can see below) commands I get errors about path is incorrect. Path is: `/d/Dev/nodejs/C:/Users/Vlad/AppData/Local/Yarn/config/global/node_modules/.bin/uglifyjs`.\r\nIt is not problem with `uglifyjs`. If I will install `eslint` globally or something like that I am getting same behaviour.\r\n\r\nI am trying to do this in Git Bash terminal (MINGW64). If I try to run same command in cmd, cmd window is just disappearing. I also tried to create `.cmd` file and run commands from this file via: `cmdFileName >> xx.txt`. I got this in output: \r\n```\r\nc:\\Users\\Vlad>eslint --help \r\nc:\\Users\\Vlad>\"$basedir/C:/Users/Vlad/AppData/Local/Yarn/config/global/node_modules/.bin/eslint.cmd\"   \"$@\" \r\nc:\\Users\\Vlad>exit $? \r\n``` \r\n**If the current behavior is a bug, please provide the steps to reproduce.**\r\n<!-- If you can, provide a link to a public repository which contains the files necessary to reproduce this. -->\r\n1. Install yarn with windows installer.\r\n2. Install `uglify-js` (or anything else) globally (from npm):\r\nOutput is:\r\n```\r\nVlad@VladPC MINGW64 /\r\n$ yarn global add uglify-js\r\nyarn global v0.17.10\r\nwarning No license field\r\n[1/4] Resolving packages...\r\n[2/4] Fetching packages...\r\n[3/4] Linking dependencies...\r\n[4/4] Building fresh packages...\r\nsuccess Installed uglify-js@2.7.5 with binaries:\r\n      - uglifyjs\r\nwarning No license field\r\nDone in 1.71s.\r\n```\r\n3. Use installed package\r\n```\r\nVlad@VladPC MINGW64 /\r\n$ uglifyjs\r\n/bin/sh: /d/Dev/nodejs/C:/Users/Vlad/AppData/Local/Yarn/config/global/node_modules/.bin/uglifyjs: No such file or directory\r\n```\r\n\r\n**What is the expected behavior?**\r\n\r\nI expect that I can run `uglifyjs` (or `eslint` or any other pacakges) command without errors after it.\r\n\r\n**Please mention your node.js, yarn and operating system version.**\r\n\r\nNodeJS v 7.0.0\r\nYarn v v0.17.10\r\nOS v Windows 7 Ultimate x64\r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/425688194","html_url":"https://github.com/yarnpkg/yarn/issues/2224#issuecomment-425688194","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2224","id":425688194,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTY4ODE5NA==","user":{"login":"xianghongai","id":2075006,"node_id":"MDQ6VXNlcjIwNzUwMDY=","avatar_url":"https://avatars3.githubusercontent.com/u/2075006?v=4","gravatar_id":"","url":"https://api.github.com/users/xianghongai","html_url":"https://github.com/xianghongai","followers_url":"https://api.github.com/users/xianghongai/followers","following_url":"https://api.github.com/users/xianghongai/following{/other_user}","gists_url":"https://api.github.com/users/xianghongai/gists{/gist_id}","starred_url":"https://api.github.com/users/xianghongai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xianghongai/subscriptions","organizations_url":"https://api.github.com/users/xianghongai/orgs","repos_url":"https://api.github.com/users/xianghongai/repos","events_url":"https://api.github.com/users/xianghongai/events{/privacy}","received_events_url":"https://api.github.com/users/xianghongai/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T02:10:30Z","updated_at":"2018-09-30T02:10:30Z","author_association":"NONE","body":"windows 10 : `$ sysdm.cpl` → `Advanced` → `Environment Variables` → `System variables` → `PATH` → `New` → `%LocalAppData%\\Yarn\\Data\\global\\node_modules\\.bin\\` → restart Command Prompt"}}
{"actor":{"display_login":"xianghongai"}}