Commit Graph

20 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
JacobLinCool
c242672f5a feat(env): show state on fetching node (#5241)
* feat(env): show state on fetching node

* fix: use internal logger instead of console.log

* chore: add changeset
2022-08-22 19:24:09 +03:00
Zoltan Kochan
80707088c2 refactor(env): releaseDir=>releaseChannel 2022-07-20 01:42:32 +03:00
Zoltan Kochan
228dcc3c9c refactor: create @pnpm/node.fetcher (#4908) 2022-06-21 20:42:21 +03:00
Zoltan Kochan
825867111b refactor: env 2022-06-21 12:59:32 +03:00
Zoltan Kochan
d1df380abe fix(env): use-node-version should work with prerelease versions (#4903) 2022-06-21 01:55:12 +03:00
Zoltan Kochan
1ceb632b1c fix: solve circular dependencies issue in the workspace 2022-04-30 03:59:40 +03:00
那里好脏不可以
d50240f370 style(*): remove duplicate declarations in TypeScript types (#4570) 2022-04-14 15:01:09 +03:00
Zoltan Kochan
cdeb652035 feat: the global store location should be inside the pnpm home directory (#4522) 2022-04-02 23:34:46 +03:00
Brandon Cheng
d16620cf9e fix: use-node-version isn't respected if the first download fails (#4114)
close #4104
2021-12-16 01:57:43 +02:00
Brandon Cheng
10a4bd4db2 feat: add node-mirror:<releaseDir> options (#4083)
close #4039
2021-12-10 20:07:58 +02:00
Zoltan Kochan
d4d7c4aee2 fix(env): installing Node.js on Raspberry Pi 4 (#4008)
close #4007
2021-11-19 11:36:43 -05:00
Zoltan Kochan
6b7eb72490 fix(env): use network/proxy settings (#3942)
close #3922
2021-11-02 11:57:18 +02:00
Zoltan Kochan
4ab87844a9 feat: injecting workspace packages (#3915)
close #3510
2021-11-01 10:14:52 +08:00
Zoltan Kochan
37905fcf7c feat: installing prerelease Node.js versions (#3892)
ref https://github.com/pnpm/pnpm/discussions/3857
2021-10-19 11:39:14 +03:00
Zoltan Kochan
917b95c01f fix: upgrade typescript to v4.4.4 2021-10-16 23:33:34 +03:00
Zoltan Kochan
5ee3b2dc77 fix: use single global config file for all npm/pnpm versions (#3873) 2021-10-15 13:10:02 +03:00
Zoltan Kochan
bab1723854 fix: do not silently exit on bad HTTPS requests (#3768)
close #3756
close #3754
2021-09-13 04:44:40 +03:00
Zoltan Kochan
25a2d6e5ca feat(env): link npm and npx as well, when installing Node.js (#3696) 2021-08-22 20:16:19 +03: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