# How can i compile source code?

**URL:** <https://community.transloadit.com/t/how-can-i-compile-source-code/15206>\
**Category:** Uppy\
**Created:** [February 13, 2020, 1:17pm UTC](https://community.transloadit.com/t/how-can-i-compile-source-code/15206 "2020-02-13T13:17:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmem](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@marmem](https://community.transloadit.com/u/marmem)\
**Post date:** [February 13, 2020, 1:17pm UTC](https://community.transloadit.com/t/how-can-i-compile-source-code/15206/1 "2020-02-13T13:17:01Z")

</div>

Hi,  
im pretty new to node.  
I need to change some parts of uppy source code, this means i need to compile it from source. How can do it?

I entered directory `uppy-master\website`, run `npm install` and then `node build-examples.js`. But i get error:  
`✗ error: Cannot find module '@babel/plugin-proposal-class-properties' from 'C:\xampp\htdocs\uppy-master' while parsing file: C:\xampp\htdocs\uppy-master\website\src\examples\i18n\app.es6`.

I tried to run `npm install @babel/plugin-proposal-class-properties` but it didnt helped.

---

<div class="post-metadata">

**Author:** ![marmem](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@marmem](https://community.transloadit.com/u/marmem)\
**Post date:** [February 13, 2020, 4:23pm UTC](https://community.transloadit.com/t/how-can-i-compile-source-code/15206/2 "2020-02-13T16:23:50Z")

</div>

I fugured out that i need to run `npm run build` in main directory. I work on windows, so it didnt had few commands used in build process, like `cat` or `gzip`. Thats i run it using cygwin.

Now there is another problem. When i run build process, it ends up with this:

`\> uppy-build@0.0.0 size C:\cygwin64\home\User\uppy-master

> echo ‘JS Bundle mingz:’ && cat ./packages/uppy/dist/uppy.min.js | gzip | wc -c  
> && echo ‘CSS Bundle mingz:’ && cat ./packages/uppy/dist/uppy.min.css | gzip | w  
> c -c

‘JS Bundle mingz:’  
121220  
‘CSS Bundle mingz:’  
cat: ./packages/uppy/dist/uppy.min.css: No such file or directory  
20`

---

<div class="post-metadata">

**Author:** ![goto-bus-stop](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/goto-bus-stop/32/18_2.png) [@goto-bus-stop](https://community.transloadit.com/u/goto-bus-stop)\
**Post date:** [February 24, 2020, 3:07pm UTC](https://community.transloadit.com/t/how-can-i-compile-source-code/15206/3 "2020-02-24T15:07:14Z")

</div>

Hmm, that suggests that the css build failed or did not complete before the `size` script is run. Could you share the output before that happens as well?
