D
D
DEM0NIT2020-11-26 02:37:00
Node.js
DEM0NIT, 2020-11-26 02:37:00

Why does node output an empty string when running a script?

After installing Node.JS through the official instructions on the server with Ubuntu 16.04, only the command works node -v, other commands, including npm, give an empty string. How can I fix this?
zFaJAxV.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Vasilyev, 2020-11-26
@DEM0NIT

Because npm also needs to be installed:
sudo apt install npm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question