0

I have installed node.js by :

$ yaourt -S nodejs 

But where node.js (Dir) was installed?

3 Answers 3

1

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.

1

Use which to find the path: $ which node

WHICH(1)

NAME which - locate a command

SYNOPSIS which [-a] filename ...
...

0

using Linux 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 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.