# Npm installing pxt/target stucks

**URL:** https://forum.makecode.com/t/npm-installing-pxt-target-stucks/32334
**Category:** PXT
**Created:** [December 9, 2024, 1:55am UTC](https://forum.makecode.com/t/npm-installing-pxt-target-stucks/32334 "2024-12-09T01:55:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://forum.makecode.com/u/muz)
#### Post date: [December 9, 2024, 1:55am UTC](https://forum.makecode.com/t/npm-installing-pxt-target-stucks/32334/1 "2024-12-09T01:55:41Z")

</div>

Hello my friends, I got stucked at the very first step to setup a local PXT dev env. With [https://github.com/carlosperate/pxt-banana](https://github.com/carlosperate/pxt-banana), a `pxt target microbit` command hangs for ever and I have to press Ctrl-C to abort it:

> $ npx pxt target microbit --no-save  
> Installing pxt-microbit --no-save locally; don’t worry about package.json warnings.  
> npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you wan  
> t a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.  
> …  
> npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumst  
> ances, which is known to be problematic. See [https://v8.dev/blog/math-random](https://v8.dev/blog/math-random) for details.  
> npm warn deprecated request@2.88.0: request has been deprecated, see [https://github.com/request/request/issues/3142](https://github.com/request/request/issues/3142)  
> npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.  
> npm warn deprecated puppeteer@13.0.1: \< 22.8.2 is no longer supported  
> ⠇^C  
> npm error path /home/user1/devel\_imq/qbuild/pxt-banana-master/node\_modules/puppeteer  
> npm error command failed  
> npm error signal SIGINT  
> npm error command sh -c node install.js  
> npm error A complete log of this run can be found in: /home/user1/.npm/\_logs/2024-12-08T14\_46\_09\_966Z-debug-0.log

With the [PXT sample target](https://github.com/Microsoft/pxt-sample) similar things happen when executing `npm install pxt`.

Please help!

–  
Muzee

---

<div class="post-metadata">

### Author: ![muz](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@muz](https://forum.makecode.com/u/muz)
#### Post date: [December 9, 2024, 3:01pm UTC](https://forum.makecode.com/t/npm-installing-pxt-target-stucks/32334/2 "2024-12-09T15:01:21Z")

</div>

I have an update on the issue mentioned ealier in this topic. The next day at 4:36 am I retried, and everything went fine, the problem disappeared. So, I learned a valuable first lesson in PXT development: if `npm install` gets stuck, set an alarm for 4:36 am the next morning and go do something else!
