Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/doesdev/force-upgrade-node
Do not use this, it will only break your Node install
https://github.com/doesdev/force-upgrade-node
Last synced: about 20 hours ago
JSON representation
Do not use this, it will only break your Node install
- Host: GitHub
- URL: https://github.com/doesdev/force-upgrade-node
- Owner: doesdev
- License: mit
- Created: 2017-02-09T04:04:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T21:10:49.000Z (over 5 years ago)
- Last Synced: 2024-08-09T02:24:34.184Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DO NOT USE THIS. It will not work and will leave your Node install in a totally borked state.
# force-upgrade-node [![NPM version](https://badge.fury.io/js/force-upgrade-node.svg)](https://npmjs.org/package/force-upgrade-node) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
> 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:
1. Get latest LTS release of Node in zip format
2. Unzip it
3. 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 folderIt 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.
## cli install
```sh
$ npm install --global force-upgrade-node
```## install
```sh
$ npm install --save force-upgrade-node
```## cli usage
```sh
$ force-upgrade-node
```## programmatic usage
```js
const fun = require('force-upgrade-node')
fun()
```## License
MIT © [Andrew Carpenter](https://github.com/doesdev)