All Projects → brock → Node Reinstall

brock / Node Reinstall

Complete Node Reinstall for OSX and Linux

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Node Reinstall

installer
Installer files for OpenJDK binaries
Stars: ✭ 86 (-83.04%)
Mutual labels:  installer
Mpv Install
Sets up file associations for mpv on Windows
Stars: ✭ 305 (-39.84%)
Mutual labels:  installer
Codeigniter Composer Installer
Installs the offical CodeIgniter 3 with secure folder structure via Composer
Stars: ✭ 357 (-29.59%)
Mutual labels:  installer
Tinu
TINU, the open tool to create bootable macOS installers
Stars: ✭ 272 (-46.35%)
Mutual labels:  installer
Pi Apps
Raspberry Pi App Store for Open Source Projects
Stars: ✭ 277 (-45.36%)
Mutual labels:  installer
U3d
U3d is a cross-platform set of tools to interact with Unity3D from command line.
Stars: ✭ 309 (-39.05%)
Mutual labels:  installer
ansible-role-rsyslog
Install and configure rsyslog on your system.
Stars: ✭ 14 (-97.24%)
Mutual labels:  installer
Onie
Open Network Install Environment
Stars: ✭ 411 (-18.93%)
Mutual labels:  installer
Cnchi
A modern, flexible online system installer for Antergos Linux
Stars: ✭ 304 (-40.04%)
Mutual labels:  installer
Symfony Installer
The Symfony Installer
Stars: ✭ 347 (-31.56%)
Mutual labels:  installer
Archdi
Arch Linux Desktop Installer : tutorial installer
Stars: ✭ 283 (-44.18%)
Mutual labels:  installer
Kubekey
Provides a flexible, rapid and convenient way to install Kubernetes only, both Kubernetes and KubeSphere, and related cloud-native add-ons. It is also an efficient tool to scale and upgrade your cluster.
Stars: ✭ 288 (-43.2%)
Mutual labels:  installer
Gtk For Windows Runtime Environment Installer
GTK+ for Windows Runtime Environment Installer (fork from http://gtk-win.sourceforge.net)
Stars: ✭ 325 (-35.9%)
Mutual labels:  installer
Golang Tools Install Script
Simple Bash script to automate Go language tools single user installation or even removal.
Stars: ✭ 255 (-49.7%)
Mutual labels:  installer
Just Install
The simple package installer for Windows
Stars: ✭ 374 (-26.23%)
Mutual labels:  installer
FineCMS
PHP application using my own MVC architecture and PDO database interface.
Stars: ✭ 14 (-97.24%)
Mutual labels:  installer
G
Simple go version manager, gluten-free
Stars: ✭ 307 (-39.45%)
Mutual labels:  installer
Fdroidclient
Android client application.
Stars: ✭ 477 (-5.92%)
Mutual labels:  installer
Hackintosh Installer University
Open source tutorial & information collector for hackintosh installation.
Stars: ✭ 3,815 (+652.47%)
Mutual labels:  installer
Choosenim
Tool for easily installing and managing multiple versions of the Nim programming language.
Stars: ✭ 338 (-33.33%)
Mutual labels:  installer

Node Re-install

Node-Reinstall is going to delete a lot of shit, and you won't be able to recover any of it. Do yourself a favor and make sure that you read the node-reinstall script and completely understand what it is going to do (i.e.: what it is going to delete) before you proceed. Here is an expanded version of the script that shows all of the directories that will be deleted:

rm -rf ~/local
rm -rf ~/lib
rm -rf ~/include
rm -rf ~/node*
rm -rf ~/npm
rm -rf ~/.npm*
sudo rm -rf /usr/local/lib/node*
sudo rm -rf /usr/local/include/node*
sudo rm -rf /usr/local/bin/node
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/share/man/man1/node.1
sudo rm -rf /usr/local/lib/dtrace/node.d

At an absolute minimum, you need to go into the home directories (the ones that start with ~/) and make sure you are okay with deleting the contents of those directories. If you are unsure if this will delete anything important, you should stop now and find another alternative for re-installing Node.js, because this approach is pretty destructive.

This script assumes you are comfortable enough with UNIX to perform these actions. If you are not, I will respond to your GitHub issue with the following GIF that is titled "pay-attention.gif"

Summary

This is a complete (and very destructive) tool for re-installing Node.js on OSX and Linux. See the SO article for reference and the related gist that spawned this repo. This deletes everything, yes everything, a lot of stuff you might want and completely removes Node.js and NPM and replaces it with the Node Version Manager called NVM. It will attempt to re-install any global NPM modules already installed, and you can opt for Nave instead of NVM if you prefer.

It also works as a first-time installer.

Installation

Clone this Repo

Clone this repo somewhere. If you have SSH setup with GitHub, use this format:

git clone [email protected]:brock/node-reinstall.git

Otherwise, clone this repo using HTTPS:

git clone https://github.com/brock/node-reinstall.git

Run the Re-Installer

Change into the directory:

cd node-reinstall

To run node-reinstall, you can call it directly since it is an executable file:

./node-reinstall

Or you can run it with bash:

bash node-reinstall

If you decide later that you want to re-install Node.js all over again, just come back to the directory where you cloned the node-reinstall repo, optionally update to the latest version of node-reinstall by running git pull, then run it again:

git pull
bash node-reinstall

Optional

If you are comfortable with Bash and the command line, you can copy the node-reinstall file to someplace in your $PATH

cp node-reinstall ~/bin/node-reinstall

With node-reinstall in your $PATH you can execute it from any directory:

node-reinstall

Usage

Whenever you feel like you need to completely re-install Node and NPM, simply execute node-reinstall. You'll be prompted for sudo privileges since this will remove all possible installation paths. Pull requests welcome.

Usage:	node-reinstall [--nave|--nvm|--nvm-latest] [-h|--help] [-v|--version] [NODE_VERSION]

Commands

node-reinstall					re-install node and npm using nvm
node-reinstall [-h|--help]		show help
node-reinstall [-v|--version]	show the node-reinstall version number
node-reinstall [-f|--force]		installs defaults without user confirmation
node-reinstall --nave			re-install using nave
node-reinstall --nvm			re-install using stable nvm - the default
node-reinstall --nvm-latest		re-install using latest nvm - creationix/nvm:master
node-reinstall 5.0.0			specify a default node version
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].