Commit Graph

4 Commits

Author SHA1 Message Date
Mark Omarov
ba270a9671 feat(env): add remove command to pnpm env (#5263)
* feat(env): add uninstall command to pnpm env

* chore(changeset): define minor bump

* fix(env): fixes for pnpm env uninstall

- Fix broken node path for the windows platform
- Notify user when removing default Node.JS
- Remove `await` on `fs.unlink` in `Promise.all`
- Add support for Node.JS v14.13 and earlier

* fix(env): fix failing tests on Windows platform

* fix(env): update aliases and error catching

- Add `rm, un, uninstall` aliases to the `remove` command
- Update CLI help message
- Ignore only `ENOENT` errors

* refactor(env): cr updates

- Use `remove` with `rm` alias only
- Update CLI help message
- Update tests to use `remove` command
- Replace custom support for older Node.JS versions
  with `@zkochan/rimraf`

* refactor(env): simplify catch block

* fix: env rm

* refactor: test

Co-authored-by: Mark Omarov <inkfaust@gmail.com>
Co-authored-by: Zoltan Kochan <z@kochan.io>
2022-08-30 01:53:13 +03:00
Zoltan Kochan
d1df380abe fix(env): use-node-version should work with prerelease versions (#4903) 2022-06-21 01:55:12 +03:00
Brandon Cheng
10a4bd4db2 feat: add node-mirror:<releaseDir> options (#4083)
close #4039
2021-12-10 20:07:58 +02:00
Zoltan Kochan
af8b5716e4 feat: a command for installing Node.js (#3620)
The following command will install Node.js (inspired by [poetry](https://python-poetry.org/docs/managing-environments/)):

```
pnpm env use --global 16.5.0
```
2021-07-30 14:21:19 +03:00