# Yarn install Error on Windows

**URL:** <https://discourse.joplinapp.org/t/yarn-install-error-on-windows/23095>\
**Category:** Development\
**Created:** [15 January 2022 07:15 UTC](https://discourse.joplinapp.org/t/yarn-install-error-on-windows/23095 "2022-01-15T07:15:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Daeraxa](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/daeraxa/32/6172_2.png) [@Daeraxa](https://discourse.joplinapp.org/u/Daeraxa)\
**Post date:** [15 January 2022 17:31 UTC](https://discourse.joplinapp.org/t/yarn-install-error-on-windows/23095/4 "2022-01-15T17:31:16Z")

</div>

Can you change the file as specified in the following post? I remember this from before christmas but never got around to looking at testing the change on other OSs.

> [@Attempting to build on Windows](https://discourse.joplinapp.org/t/attempting-to-build-on-windows/22559/12):
>
> I followed the same path as @Daeraxa and got stuck. Error: spawnSync yarn ENOENT The cause is cmd.exe cannot execute yarn. Changing the shell or using yarn.cmd is needed. By rewriting app-desktop/tools/compileScripts.js as follows, I succeeded in the build. - const result = spawnSync('yarn', ['run', 'babel', '--presets', 'react', '--out-file', jsPath, jsxPath]); + const result = spawnSync('yarn', ['run', 'babel', '--presets', 'react', '--out-file', jsPath, jsxPath], { shell: true });

---

_[View the full topic](https://discourse.joplinapp.org/t/yarn-install-error-on-windows/23095)._
