@oresoftware/npmv
TypeScript icon, indicating that this package has built-in type declarations

0.0.1002 • Public • Published

@oresoftware/npm.version

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/npmv'

Usage

Add a new NPM version

$ npmv 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:

$ npmv use 6 --latest

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


List all existing versions

$ npmv ls

Remove matching versions

$ npmv rm 6*

The above will remove all versions that start with 6.


Remove all versions

$ npmv 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 npmv already exists on your system, you can use this same package with a differet name/executable:

$ npm i -g '@oresoftware/kk5'

Package Sidebar

Install

npm i @oresoftware/npmv

Weekly Downloads

1

Version

0.0.1002

License

SEE LICENSE IN LICENSE.md

Unpacked Size

15.4 kB

Total Files

20

Last publish

Collaborators

  • oresoftware