oha!!! sorry there’s a typo!!! so sorry!!
harry has pointed to…
i corrected all answers , now you have the correct installation.
try again
delete node
sudo apt-get purge nodejs
after that you can check if node is still on your system and do the following steps:- Check where NodeJS is installed:
whereis node
.
This should output the path of node (for example /usr/local/bin/node). - Remove all binaries and the node_modules folder:
sudo rm -r /usr/local/bin/node /usr/local/bin/npm /usr/local/lib/node_modules
- Check that NodeJS is gone:
node --version
. It should output command not found.
reinstall with
wget https://nodejs.org/dist/v4.6.2/node-v4.6.2-linux-armv7l.tar.gz -P /tmp
cd /usr/local
sudo tar xzvf /tmp/node-v4.6.2-linux-armv7l.tar.gz --strip=1