It appears that you can only run the node/npm installation directly from the Docker Desktop terminal. While it may be possible to connect from terminals built into IDEs, they will not have root access. To install node/npm, you will need to log in to Docker Desktop directly, as described in this other post. NPM watch stops automatically after WSL - #10 by Agus