there might be issues in with version compatibility or wsl is not restarting with installation of new software. you can try after shuting down with wsl --shutdown command. or check if node.js binary is in your path of ubuntu,or add it manually. update nodejs or use --force if necessary. hope this helps. mine worked after a shutdown.