# Problem with pxt-sample

**URL:** https://forum.makecode.com/t/problem-with-pxt-sample/6713
**Category:** PXT
**Created:** [March 11, 2021, 3:58pm UTC](https://forum.makecode.com/t/problem-with-pxt-sample/6713 "2021-03-11T15:58:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marcov](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@marcov](https://forum.makecode.com/u/marcov)
#### Post date: [March 11, 2021, 3:58pm UTC](https://forum.makecode.com/t/problem-with-pxt-sample/6713/1 "2021-03-11T15:58:18Z")

</div>

I would like to build my own PXT with really few visual blocks. I would like to run it locally.  
I tried to document myself and this is what I’ve done

I think I was able to install and run pxt-microbit following these steps:  
cd /d/GitHub  
git clone [https://github.com/Microsoft/pxt-microbit](https://github.com/Microsoft/pxt-microbit)  
cd /d/GitHub/pxt-microbit  
npm install -g pxt  
npm install  
cd /d/pxt\_projects (should I need to go outside /d/GitHub/pxt-microbit folder ?)  
pxt target microbit  
pxt serve

It opens a local server where I can see the micro:bit interface like [https://makecode.microbit.org/](https://makecode.microbit.org/)  
The projects are saved inside my folder /d/pxt\_projects

So my second step was to use pxt-sample and then start customizing it… but…  
cd /d/GitHub  
git clone [https://github.com/Microsoft/pxt-sample](https://github.com/Microsoft/pxt-sample)  
cd /d/GitHub/pxt-sample  
npm install -g pxt  
npm install  
cd /d/pxt\_projects  
pxt target sample  
pxt serve

It opens the browser but I can see only the following image and nothing happens.  
 ![PXT](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/c/cf08f596f32658407818e93485b2e612915e3594.png)

What am i doing wrong?

---

<div class="post-metadata">

### Author: ![JeCa](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JeCa](https://forum.makecode.com/u/JeCa)
#### Post date: [March 19, 2021, 7:22am UTC](https://forum.makecode.com/t/problem-with-pxt-sample/6713/2 "2021-03-19T07:22:25Z")

</div>

I tried the pxt-sample as well, like this:

git clone [https://github.com/microsoft/pxt-sample](https://github.com/microsoft/pxt-sample)  
cd pxt-sample  
npm install  
npm install -g pxt // note: pxt was probably already installed from earlier  
pxt serve --local

There are errors in the console, and many icons are missing in the editor. I wonder whether pxt-sample still works with the current pxt ?
