In order to find the installation path, write the below command in the terminal:
which node
If it doesn’t succeed, try this one:
which nodejs
Same thing for finding npm installation path:
which npm
If you are on Windows, write where
instead of which
Hope, it helps 🙂