# How to develop locally?

**URL:** <https://forum.makecode.com/t/how-to-develop-locally/1948>\
**Category:** Arcade\
**Created:** [May 4, 2020, 6:41pm UTC](https://forum.makecode.com/t/how-to-develop-locally/1948 "2020-05-04T18:41:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ractive](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ractive/32/928_2.png) [@ractive](https://forum.makecode.com/u/ractive)\
**Post date:** [May 4, 2020, 6:41pm UTC](https://forum.makecode.com/t/how-to-develop-locally/1948/1 "2020-05-04T18:41:43Z")

</div>

Hello everyone

What’s the best setup to develop and test games locally?  
I got so far to install pxt and build my project with:  
npm install -g pxt  
pxt target arcade  
pxt build

“pxt serve” also works and pxt-arcade is started and I can open it in the browser.  
But how can I start the game locally in the simulator?

Another issue that I have is that node modules take precedence over ones from pxt\_modules, when opening the project in vscode. E.g. the “Math” module of node is used instead of the “Math” module found in pxt\_modules/base/math.ts, so that e.g. the “Math.randomRange” method is not found. Vscode then marks this as an error. How can I tell vscode to prefer the modules from pxt\_modules instead of node\_modules?

Thanks for giving some hints how to develop locally.
