I'm having a problem with npm
on my Ubuntu 20.04 machine. I try to check its version (I've just installed it with sudo apt install npm
, I have NodeJS version 10.19.0) and I don't get any output, just immediately next line in terminal:
Same thing happens when I try to install something, for instance json-server with npm install json-server -g
. I don't get any output at all, nothing happens.
It may be that json-server is already installed, because I don't get any error when I'm trying to use it. However, when I try to write json-server --watch someFile.json
, still nothing happens, there is no hosting of this json file.
What may be the reason of this problem?
CodePudding user response:
Installing with nvm solved the problem.