Factsheet
node.js - How do I find the old version of node js? - Stack Overflow
node.js - nvm ls does not list specific installed version numbers - Stack Overflow
I'm trying to find the node version of an old project. Can someone help me out?
What is actually new in Node.js since 2018?
» npm install node
Easiest solution would be to try the following to cleanup your node issues and reinstall a clean version.
First remove everything related to node
sudo apt-get purge --auto-remove nodejs npm
UPDATE For yum:
yum clean all
yum -y remove nodejs
Remove these leftover files and folders as well
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp /opt/local/bin/node opt/local/include/node /opt/local/lib/node_modules
Then install node back with nvm,
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
//To uninstall a node version
//nvm uninstall <current version>
nvm install 8.8.1
nvm use 8.8.1
//check with
node -v
npm -v
//**UPDATE**: Install your package
npm install -g n
And all should work.
UPDATE : Install Without NVM
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -
yum install nodejs
node -v
//Install your package
npm install -g n
check the releases notes of node https://nodejs.org/en/download/releases/ you can download older version from this site
nvm list
This command worked fine for me. It will list all the installed versions of node under nvm
This happens when you have installed node but not installed using nvm, you can install the versions again, by like
nvm install 12.14 where 12.14 is that particular version you wanna use.
and use it by nvm use 12.14.
I read somewhere that you can actually have those versions being managed by nvm itself, but I need to find it again, will update my answer when I find it.
» npm install all-node-versions
Can someone tell me how I would go about finding an old project's version of node? I put a project down for a couple of months, and I updated node since then. Now I'm getting error messages, and I think that may be the cause. I can't find an answer to this question.
To clarify, I'm not asking to find my current version of node. I know how to do that. I'm asking how I find the version of node I was running at the time I was working on the project. Supposedly, it shows up under "engines" in package.json. I've checked package.json in both my server and front-end, and there is no item called engines.
Can anyone help me out?