node-reinstall 0 npm

Complete Node Reinstall for OSX and Linux

3 years after

Node Re-install

Join the chat at https://gitter.im/brock/node-reinstall

Complete Node Reinstall for OSX and Linux. See the SO article for reference and the related gist that spawned this repo. This deletes everything, yes everything, and re-installs Node and NPM with NVM (or Nave), then re-installs any global NPM modules already installed.

Don't have Node.js installed yet? No problem. 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

Related Repositories

nvm

nvm

Node Version Manager - Simple bash script to manage multiple active node.js vers ...

assemble

assemble

Static site generator and rapid prototyping framework for Node.js, Grunt.js, and ...

node-gyp

node-gyp

Node.js native addon build tool ...

node-serialport

node-serialport

Node.js package to access serial ports for reading and writing. Welcome your rob ...

nwm

nwm

Tiling window manager for X11 written in Node.js ...


Top Contributors

brock jwerle mistergraphx gitter-badger

Releases

-   0.0.16 zip tar
-   0.0.15 zip tar
-   0.0.14 zip tar
-   0.0.13 zip tar
-   0.0.12 zip tar
-   0.0.11 zip tar
-   0.0.10 zip tar
-   0.0.9 zip tar
-   0.0.8 zip tar
-   0.0.7 zip tar
-   0.0.6 zip tar
-   0.0.5 zip tar
-   0.0.4 zip tar
-   0.0.3 zip tar
-   0.0.2 zip tar
-   0.0.1 zip tar