Socket
Socket
Sign inDemoInstall

force-upgrade-node

Package Overview
Dependencies
50
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    force-upgrade-node

Very forceful, dangerous, not recommended upgrade of Node on Windows


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

force-upgrade-node NPM version js-standard-style

Very forceful, dangerous, not recommended upgrade of Node on Windows

This package is idiotic and no sane person should ever use it. I only wrote it to run on a prod server for fun and profit. #NotSane.

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 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.

cli install

$ npm install --global force-upgrade-node

install

$ npm install --save force-upgrade-node

cli usage

$ force-upgrade-node

programmatic usage

const fun = require('force-upgrade-node')
fun()

License

MIT © Andrew Carpenter

Keywords

FAQs

Last updated on 09 Feb 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc