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

前端 未结 4 541
北海茫月
北海茫月 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条回答
  •  闹比i
    闹比i (楼主)
    2021-02-01 09:45

    running dpkg-query -L nodejs will list the full path to every file belonging to the nodejs package. If /usr/bin/node is not there (it should be a symlink to /usr/bin/nodejs), then something went wrong with the apt-get install.

提交回复
热议问题