Very forceful, dangerous, not recommended upgrade of Node on Windows
This package is idiotic and no sane person should ever use it.
When the exported function is called it attempts to do the following:
- Get latest LTS release of Node in zip format
- Unzip it
- Spin up a GO script that does the following:
- Kills all
node.exe
processes, including the one it was called from - Moves active Node program folder to
${oldFolder}-bak
- Moves contents of downloaded zip into that folder
It does nothing else. Doesn't attempt to cleanup any mess it made with NPM, doesn't do anything about potential issues with installed modules global or otherwise, probably won't work in 90% of cases, will most likely destroy your rig.
Also, if you're dumb enough to run this be advised it needs run from an elevated command prompt in order to do all the file ops.
But seriously, don't run this. It's infinitely stupid and dangerous.
$ npm install --global force-upgrade-node
$ npm install --save force-upgrade-node
$ force-upgrade-node
const fun = require('force-upgrade-node')
fun()
MIT © Andrew Carpenter