I've dual Boot(ubuntu/Windows 10) on my laptop. I am getting this error and I can't run npm install on Ubuntu. I checked with node -v and it shows v17.4.0 :
npm does not support Node.js v13.14.0
npm ERR! Invalid or unexpected token
npm ERR! A complete log of this run can be found in:
npm ERR! /home/diana/.npm/_logs/2022-02-12T09_42_18_704Z-debug-0.log
CodePudding user response:
Have you tried updating your npm?
If no, run this:
sudo apt-get install -y npm
or check this:
CodePudding user response:
Update: I had to uninstall and remove all the folders related to node and npm. I've also installed the latest version of nvm 0.39 and only then I managed to actually upgrade the node to the right version. Everything is working now.
How can I completely uninstall nodejs, npm and node in Ubuntu