I've Node.js + NPM installed in Windows (using the official MSI installer). The path containing their executables is both on system and user PATH
environment variables. When I run node
in MSYS2 it's not recognized.
Other things I considered:
- I did try
pacman -Ss nodejs
on MSYS2, and it outputs nothing. - Update
/home/USER/.profile
,.bashrc
and.bash_profile
with:
export PATH=${PATH};"C:/Program Files/nodejs";
Yet Node.js commands aren't recognized. Another related question, Installing nodejs and npm on MSYS2 (2017), has outdated answers which don't solve my problem.
Notes:
- I did restart the terminal after
PATH
changes.