Coder Social home page Coder Social logo

oresoftware / npm.version Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 37 KB

Change NPM versions, just like changing Node versions with NVM.

License: MIT License

Shell 88.72% JavaScript 9.33% TypeScript 1.96%
nvm npm nodejs bash shell-script shellscript

npm.version's Introduction

@oresoftware/npv

Change NPM versions, just like changing Node versions with NVM


Caveat/Disclaimer

Not all NPM versions are compatible with all Node versions. Many NPM versions are not compatible with older or newer Node versions.


Installation

$ npm i -g '@oresoftware/npv'

Usage

Add a new NPM version

$ npv use 6

The above will look to see if any local versions match 6*
If no local versions match, then it will go to NPM to get the latest version that starts with 6.

If you use the --latest flag:

$ npv use 6 --latest

then you will always get the latest version from NPM that starts with 6.


List all existing versions

$ npv ls

Remove matching versions

$ npv rm 6*

The above will remove all versions that start with 6.


Remove all versions

$ npv remove-all

The above will remove all versions. NPM will then be
replaced with the latest version: npm install -g npm@latest


Alias for the executable

Note that if npv / npmv executables already exists on your system, you can use this same package with a different name/executable:

$ npm i -g '@oresoftware/kk5'

'kk5' is completely random - I just chose it because it was easy to type lol. Most people will probably prefer using npv / npmv.

npm.version's People

Contributors

oresoftware avatar

Stargazers

Indra Dwi Putra avatar  avatar

Watchers

James Cloos avatar  avatar  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.