I have completely removed nodejs and npm but the package which i had installed using npm i.e. node-red is running when I am typing "node-red " in terminal in ubuntu 16.04ls
I had installed nodejs and and npm using "apt-get install nodejs npm
"
and then I installed node-red using npm install node-red -g
for uninstalling I did apt-get unistall npm nodejs
it get uninstalled successfully but now when I am typing uninstalling node-red it is running
I found that node-red file was stored in
/use/local/bin/node-red
and it was running when I was typing node-red in Terminal. Also, there was one more file node-red-pi which I have removed now. And this node-red is no more running now. which I wanted to do thanx @hmnzr and King Reload