I have installed node.js by :
$ yaourt -S nodejs But where node.js (Dir) was installed?
You can use either the file list on the arch packages list (click on View the file list for nodejs on the packages page or use pacman --query --list nodejs to view the content of the installed nodejs package.
Use which to find the path: $ which node
WHICH(1)
NAME which - locate a command
SYNOPSIS which [-a] filename ...
...
which command find Node.js installed path $ which node /Users/xgqfrms-mbp/.nvm/versions/node/v12.18.0/bin/node $ which npm /Users/xgqfrms-mbp/.nvm/versions/node/v12.18.0/bin/npm $ echo $PATH # get all env paths