how can I find my node.js files in linux, /usr/bin/node is not working

前端 未结 4 542
北海茫月
北海茫月 2021-02-01 08:45

I want to find where is my node.js in ubuntu linux system, the command: which node gives me the path of /usr/bin/node, but when I go to that folder, there i

4条回答
  •  借酒劲吻你
    2021-02-01 09:36

    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 :)

提交回复
热议问题