Giter Club home page Giter Club logo

npmbrew's Introduction

npmbrew -- a npm version manager

Build Status NPM Downloads

Why npmbrew?

npm is flooded with issue reports on a daily basis. Sometimes I spent just too much time juggling around different npm versions trying to reproduce the error.

I created npmbrew to make it easy to switch versions. See also: #14

Install

Using npm.

npm install -g npmbrew

Usage

Usage: npmbrew <command>

Commands:
clean                Delete all installed sources
help                 Output help information
install <version>    Install the version passed
ls                   List versions currently installed
ls-remote            List registry versions
npm                  An alias of npm <command>
uninstall <version>  Delete the install for <version>
use <version>        Use <version>

Example

Install

npmbrew install v2.6.0
installed

Switch version with use:

npmbrew use v2.6.0
Using v2.6.0

Use npm

npmbrew npm help
Usage: npm <command> blah blah...

Add npmbrew npm to PATH

Add the following line to the end of your .bashrc or .zshrc.

# npmbrew
export PATH=$HOME/.npmbrew/current/bin:$PATH

Reload config.

source ~/.zshrc

Test.

npm help
Usage: npm <command> blah blah...

One more thing

npmbrew uses update-notifier, to let users know when there is a new version available for download.

npm whoami
watilde


┌──────────────────────────────────────────┐
│ Update available: 2.7.0 (current: 2.6.0) │
│ Run npmbrew install 2.7.0 to update.     │
└──────────────────────────────────────────┘


LICENSE

The MIT License (MIT)

Copyright (c) 2015 Daijiro Wachi

See also: LICENSE.

npmbrew's People

Contributors

watilde avatar

Watchers

James Cloos avatar Michael Liquori avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.