https://github.com/oresoftware/npm.version
Change NPM versions, just like changing Node versions with NVM.
https://github.com/oresoftware/npm.version
bash nodejs npm nvm shell-script shellscript
Last synced: 6 months ago
JSON representation
Change NPM versions, just like changing Node versions with NVM.
- Host: GitHub
- URL: https://github.com/oresoftware/npm.version
- Owner: ORESoftware
- License: mit
- Created: 2018-06-21T03:20:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-24T08:11:28.000Z (over 7 years ago)
- Last Synced: 2023-03-02T00:26:05.941Z (over 2 years ago)
- Topics: bash, nodejs, npm, nvm, shell-script, shellscript
- Language: Shell
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# @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
```bash
$ npm i -g '@oresoftware/npv'
```
## Usage
__Add a new NPM version__
```bash
$ 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:
```bash
$ npv use 6 --latest
```then you will always get the latest version from NPM that starts with 6.
__List all existing versions__
```bash
$ npv ls
```
__Remove matching versions__
```bash
$ npv rm 6*
```The above will remove all versions that start with 6.
__Remove all versions__
```bash
$ 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:```bash
$ 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.