I installed the Linux subsystem on my Windows (Ubuntu) machine, and I wanted to run node scripts. But I get an error saying
Command 'node' not found, but can be installed with:
sudo apt install nodejs
but I already have node. It works with other shell scripting languages like PowerShell, and Command Prompt. Same for npm.
I've tried using the whereis node
and which npm
functions, and they work as expected.