I
I
ince2020-02-23 15:14:53
linux
ince, 2020-02-23 15:14:53

How to call an installed package?

[email protected]:~# sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (4.2.6~dfsg-1ubuntu4.2).
0 upgraded, 0 newly installed, 0 to remove and 182 not upgraded.
[email protected]:~# node -v
-bash: node: command not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-02-23
@ince

Try this:
nodejs -v
If it works, then:
sudo ln -s /usr/bin/nodejs /usr/bin/node

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question