# NPM watch stops automatically after WSL

**URL:** https://community.kinsta.com/t/npm-watch-stops-automatically-after-wsl/3311
**Category:** Questions
**Created:** [April 16, 2024, 6:50pm UTC](https://community.kinsta.com/t/npm-watch-stops-automatically-after-wsl/3311 "2024-04-16T18:50:24Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [April 22, 2024, 3:21am UTC](https://community.kinsta.com/t/npm-watch-stops-automatically-after-wsl/3311/10 "2024-04-22T03:21:32Z")

</div>

Hello again @Imabi 👋

We still haven’t heard an update yet from our DevKinsta engineers as my colleague reported few days ago.

Anyway, I’m just wondering what if you run that NPM command line directly within the `devkinsta_fpm` docker’s container (via its Terminal/Exec tab) instead of from that `Z:` network drive that’s mapped to the WSL path?

On your docker desktop → Containers menu, click on the “devkinsta\_fpm” name:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/f060648949b541b397e027c78fd9ca17caedae61.png)

then on that “devkinsta\_fpm” container page, click on the “Exec” tab (to open the “terminal” of that container:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/45f238c4b981a6736325fc8e8654866f8dee70b6.png)

there, you may want to go inside your local site folder by typing something like:  
`cd /www/kinsta/public/yoursitenamehere`  
and try to run the npm command line? if it works there? 🤔

If it says that NPM is not found (i.e: `/bin/sh: 9: npm: not found` ), then you will need to install NPM/NodeJS in that “devkinsta\_fpm” container .

To install it on that docker’s container, you can run the following one-line command in that “Exec” tab (terminal) on your Docker Desktop:

> curl -fsSL [https://deb.nodesource.com/setup\_21.x](https://deb.nodesource.com/setup_21.x) | sudo -E bash - ; sudo apt-get install -y nodejs

(which I took from [this external site](https://github.com/nodesource/distributions#nodejs))

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/9/9437ebf8f9dae9ba62d4f88912e6e1988c8a1db8.png)

then you can check if NPM and NodeJS have been installed properly, with:

> npm -v

and

> node -v

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/e/e8f07eb2135f85e2d5c03dfb7d719fce499fa380.png)

After that, please try to perform your NPM command line you tried before in your local site’s path/folder and see if it will work fine there? 🙏

Best regrads,  
Agus Utomo

---

_[View the full topic](https://community.kinsta.com/t/npm-watch-stops-automatically-after-wsl/3311)._
