{"action":"created","issue":{"url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/503","repository_url":"https://api.github.com/repos/eirslett/frontend-maven-plugin","labels_url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/503/comments","events_url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/503/events","html_url":"https://github.com/eirslett/frontend-maven-plugin/issues/503","id":186899474,"number":503,"title":"Yarn - windows tarball support & custom installation path","user":{"login":"kash-raman","id":4085420,"avatar_url":"https://avatars.githubusercontent.com/u/4085420?v=3","gravatar_id":"","url":"https://api.github.com/users/kash-raman","html_url":"https://github.com/kash-raman","followers_url":"https://api.github.com/users/kash-raman/followers","following_url":"https://api.github.com/users/kash-raman/following{/other_user}","gists_url":"https://api.github.com/users/kash-raman/gists{/gist_id}","starred_url":"https://api.github.com/users/kash-raman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kash-raman/subscriptions","organizations_url":"https://api.github.com/users/kash-raman/orgs","repos_url":"https://api.github.com/users/kash-raman/repos","events_url":"https://api.github.com/users/kash-raman/events{/privacy}","received_events_url":"https://api.github.com/users/kash-raman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-02T19:36:41Z","updated_at":"2016-11-04T09:44:16Z","closed_at":null,"body":"1. **Windows without admin access** By default in windows, plugin is trying to install yarn msi. With a standard user, I'm not able to install. \r\nNeed a toggle in YarnInstaller.java line no. 127 to switch using tar.gz.  \r\n\r\n2. **Custom path support:** Due to above issue, I'm using below execution for installation and need it in global scope. The installation happens under working_folder/node/node_modules/yarn/... which is totally different folder from defaulted target/node/yarn.  And it does not honor workingDirectory or installedDirectory.\r\n\r\n```\r\n                  <execution>\r\n                        <id>npm install yarn</id>\r\n                        <phase>prepare-package</phase>\r\n                        <goals>\r\n                            <goal>npm</goal>\r\n                        </goals>\r\n                        <configuration>\r\n                            <arguments>install grunt/yarn-complete.tgz --verbose -g</arguments>\r\n                            <skip>${skipGruntInstall}</skip>\r\n                        </configuration>\r\n                    </execution>\r\n\r\n```\r\n```\r\npublic class YarnInstaller {\r\n    public static final String **INSTALL_PATH = \"/node/yarn\"**;\r\n```\r\n\r\n```\r\nfinal class InstallYarnExecutorConfig implements YarnExecutorConfig {\r\n    private static final String YARN_WINDOWS =\r\n        YarnInstaller.INSTALL_PATH.replaceAll(\"/\", \"\\\\\\\\\") + \"\\\\Yarn\\\\bin\\\\yarn.cmd\";\r\n```\r\n\r\n \r\nIs anyone facing similar issue? Also, I'm working on the fix.\r\n \r\nThanks,\r\nKasthuri \r\n"},"comment":{"url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/comments/258384649","html_url":"https://github.com/eirslett/frontend-maven-plugin/issues/503#issuecomment-258384649","issue_url":"https://api.github.com/repos/eirslett/frontend-maven-plugin/issues/503","id":258384649,"user":{"login":"polarctos","id":16987369,"avatar_url":"https://avatars.githubusercontent.com/u/16987369?v=3","gravatar_id":"","url":"https://api.github.com/users/polarctos","html_url":"https://github.com/polarctos","followers_url":"https://api.github.com/users/polarctos/followers","following_url":"https://api.github.com/users/polarctos/following{/other_user}","gists_url":"https://api.github.com/users/polarctos/gists{/gist_id}","starred_url":"https://api.github.com/users/polarctos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polarctos/subscriptions","organizations_url":"https://api.github.com/users/polarctos/orgs","repos_url":"https://api.github.com/users/polarctos/repos","events_url":"https://api.github.com/users/polarctos/events{/privacy}","received_events_url":"https://api.github.com/users/polarctos/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T09:44:16Z","updated_at":"2016-11-04T09:44:16Z","body":"I have a build agent running windows here, that is also having problems extracting the .msi file.\r\nThus I would also favor switching to the .tar.gz file instead.\r\n\r\n> `Could not extract the Yarn archive: Could not extract C:\\BuildAgent\\work\\..\\..\\maven\\repository\\com\\github\\eirslett\\yarn\\0.16.1\\yarn-0.16.1.\\yarn-0.16.1.msi; return code 1619`"}}
{"actor":{"display_login":"polarctos"}}