[Resolved] Cannot install yarn with choco

kittaakos's Avatar

kittaakos

Oct 23, 2017 @ 12:41 PM

Hi there,

Our CI build started to fail due to a strange `yarn` installation problem. I can see the same error message when trying to install yarn 1.2.1 and 1.0.2 with `choco` too:

```
Download of yarn-1.2.1.msi (1.23 MB) completed.
Hashes match.
Installing yarn...
ERROR: Running ["C:\windows\System32\msiexec.exe" /i "C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\yarn\1.2.1\yarn-1.2.1.msi" /qn /norestart /l*v "C:\Users\appveyor\AppData\Local\Temp\1\chocolatey\yarn\yarn.MsiInstall.log" ] was not successful. Exit code was '1603'. See log for possible error messages.
The install of yarn was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\yarn\tools\chocolateyinstall.ps1'.
 See log for details.
Chocolatey installed 1/2 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
 - yarn (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\yarn\tools\chocolateyinstall.ps1'.
 See log for details.
```

I have two questions:
 - Could it be related to any changes on Appveyor? I am not aware of any configuration changes on our side.
 - What is the recommended way to check the logs, so that we can figure out the problem on our own next time?

The build can be found here: https://ci.appveyor.com/project/kittaakos/theia/build/1.0.1110

Thank you!

Cheers,
Akos

  1. 1 Posted by kittaakos on Oct 23, 2017 @ 01:04 PM

    kittaakos's Avatar

    I have set up a stripped-down version of the problem. It is available here: https://ci.appveyor.com/project/kittaakos/9054-cannot-install-yarn-with-choco

  2. Support Staff 2 Posted by Feodor Fitsner on Oct 23, 2017 @ 02:22 PM

    Feodor Fitsner's Avatar

    This is probably because Yarn 1.2.1 is now pre-installed with the latest update: https://www.appveyor.com/updates/2017/10/22/

  3. 3 Posted by kittaakos on Oct 23, 2017 @ 02:30 PM

    kittaakos's Avatar

    Cool, thank you for your reply! I have updated the build configuration: I have removed the yarn installation step. I will get back to this thread once I get the build result.

  4. 4 Posted by kittaakos on Oct 23, 2017 @ 02:34 PM

    kittaakos's Avatar

    Yeah, it "works" fine without the yarn installation step. I have some other problem due to the yarn version, but that is unrelated to my original question. Thanks again!

  5. kittaakos closed this discussion on Oct 23, 2017 @ 02:35 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac