yo frens is anyone familiar with docker? im setting up a dapp and trying to run index.js. i get an unexpected token error so naturally my node version is probably outdated. i run npm install npm@latest -g and then for some reason my npm ver went from 12.22.9 to 10.2.5.
yes. installing latest npm somehow downgraded my version number?? ive been searching why but can't find anything out right now LOL
Dec 25, 2023, 4:28 AM
Uninstall and reinstall with nvm
Nvm lts
Then use it to alter the npm version based on need..
nvm install 16
Nvm use 16
nvm install 16
Nvm use 16
Dec 25, 2023, 5:01 AM
I did try that and lts but didn't work 😭
Hmm ok will try this and force it to use latest
i've given up for tonight. even forcing latest version is not working. maybe it will work tomorrow!
merry christmas 🎅🎄🎁
merry christmas 🎅🎄🎁
Dec 25, 2023, 5:50 AM