Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
45
rated 0 times [  45] [ 0]  / answers: 1 / hits: 142994  / 3 Years ago, mon, september 13, 2021, 8:10:28

I don't understand why the node command will not work, whereas nodejs works:



$ node --version
zsh: command not found: node
$ nodejs --version
v0.10.15


I tried apt-get install nodejs, but the latest version is already installed.



And furthermore:



$ npm
zsh: command not found: npm


I thought npm was included in NodeJS > 0.10?


More From » apt

 Answers
7

The node package is unrelated to NodeJS. See here for information about node Install node:




Amateur Packet Radio Node program (transitional package)







You should instead install the nodejs Install nodejs package.



sudo apt-get install nodejs


then use it with the nodejs command.



The reason node doesn't work is likely because of conflicts with the original node package linked above.






If you want npm Install npm, you'll have to install that as well.



sudo apt-get install npm

[#27504] Tuesday, September 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
theurn

Total Points: 30
Total Questions: 110
Total Answers: 111

Location: Bahrain
Member since Fri, Sep 16, 2022
2 Years ago
theurn questions
Tue, Apr 5, 22, 14:18, 2 Years ago
Mon, Feb 14, 22, 16:29, 2 Years ago
Sat, Apr 8, 23, 05:26, 1 Year ago
Tue, Jan 10, 23, 23:59, 1 Year ago
Fri, Apr 8, 22, 01:36, 2 Years ago
;