Skip to content

Commit

Permalink
chore: update commander
Browse files Browse the repository at this point in the history
BREAKING CHANGE: bump min node version to `>= 18`
  • Loading branch information
larsrickert committed May 1, 2024
1 parent f26b136 commit e6c81ed
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
4 changes: 2 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"packageManager": "pnpm@9.0.6",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"repository": {
"type": "git",
Expand All @@ -34,7 +34,7 @@
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"commander": "^11.1.0",
"commander": "^12.0.0",
"shelljs": "~0.8.5"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 7 additions & 14 deletions docs/cli/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,22 @@ The `nginx-proxy` offers a Node CLI that can be used to e.g. simplify or automat

## Prerequisites

You need to have node installed on your system when you want to use the CLI.
You need to have [Node.js](https://nodejs.org) `>= 18` installed on your system when you want to use the CLI.

### Install node

- **Step 1:** Get installation script with (replacing `16.x` with the version that you want to install):
We recommend to install node using [fnm](https://github.com/Schniz/fnm).

```bash
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
```

- **Step 2:** Execute the script with:

```bash
bash nodesource_setup.sh
```
- **Step 1:** Follow the [fnm installation instructions](https://github.com/Schniz/fnm?tab=readme-ov-file#installation)

- **Step 3:** Install node
- **Step 2:** Install your desired node version

```bash
apt install nodejs
fnm install 20
fnm default 20
```

- **Step 4 (optional):** Check node version
- **Step 3 (optional):** Verify installation

```bash
node -v
Expand Down

0 comments on commit e6c81ed

Please sign in to comment.