Reputation: 1
PROBLEM
I need to downgrade my node.js version, to avoid Problems with Vue CLI.
https://stackoverflow.com/a/60277789
I tried doing the steps in this answer
sudo npm install -g n
After running this command i get a weird error:
sudo: npm: command not found
So i tried running it without sudo and got the following output:
changed 1 package, and audited 2 packages in 1s
found 0 vulnerabilities
When i run
sudo n 14.17.5
i get the error: sudo: n: command not found
QUESTION
What is going on here?
Is there another way to change the version of node?
Also, i read somewhere that the npm prefix could be the issue:
/home/user/.nvm/versions/node/v16.13.2/lib/node_modules/node/lib/node_modules/node
Upvotes: 0
Views: 723