T
T
temakorolev12020-11-06 03:04:53
linux
temakorolev1, 2020-11-06 03:04:53

When the packages are installed, it displays that they are not there, because of what could this be?

Faced such a problem. I have a clean server on Ubuntu 20.04 with ispmanager 5 lite installed. Installed telegram bot written in nodejs. So I installed nvm, forever packages - they are installed globally. I execute all commands on behalf of user (not root) using sudo. There is no access to root.
So there are times when the bot crashes, well, as nodejs commands are not executed, then it comes to life itself.
Having opened the terminal with putty, I cannot execute commands to stop the bot or restart, I get Command 'nvm' not found, but these folders are all there in the directories. I do not understand what the problem is. Don't judge me, I'm not a sysadmin and I don't understand. Tell me where to look at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gip, 2020-11-06
@Giperoglif

npm maybe?

A
Alexey Sundukov, 2020-11-06
@alekciy

I would suggest 3 possible options:
1) OS level problems (experience shows that the previous supported LTS release works stably, i.e. now it is Ubuntu 16/18 LTS);
2) hacking on the server and you have guests hosted like that;
3) for some reason redefined $ PATH.
According to the complexity of the check, you should start from point 3. You need to run the command when there are no problems on the server (and save the output to a file) and again when there is a problem. Compare results.
echo $PATH

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question