xxxxxxxxxx
ubuntu2 config --default-user root
#ubuntu 20.04
ubuntu2004 config --default-user root
#ubuntu 18.04
ubuntu1804 config --default-user root
Typescript file run directly on node.js, this script have to add in script as start to run npm command
xxxxxxxxxx
ts-node-dev --respawn --transpile-only server.ts
For windows terminal preview I had to change the command line to add the user in the default profile
xxxxxxxxxx
C:\WINDOWS\system32\wsl.exe -d Arch -u myusername