From 172afb0789c19b6f603e63911c3e14b9c6c7bd88 Mon Sep 17 00:00:00 2001 From: Joel Taylor Date: Wed, 18 Dec 2019 14:25:14 -0800 Subject: [PATCH] Cli: Update CliClient node dependency to 10+ (#2177) --- CliClient/app/main.js | 4 ++-- CliClient/package.json | 2 +- README.md | 2 +- readme/terminal.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CliClient/app/main.js b/CliClient/app/main.js index cc7ab66fe..9530e140d 100644 --- a/CliClient/app/main.js +++ b/CliClient/app/main.js @@ -8,8 +8,8 @@ require('app-module-path').addPath(__dirname); const compareVersion = require('compare-version'); const nodeVersion = process && process.versions && process.versions.node ? process.versions.node : '0.0.0'; -if (compareVersion(nodeVersion, '8.0.0') < 0) { - console.error(`Joplin requires Node 8+. Detected version ${nodeVersion}`); +if (compareVersion(nodeVersion, '10.0.0') < 0) { + console.error(`Joplin requires Node 10+. Detected version ${nodeVersion}`); process.exit(1); } diff --git a/CliClient/package.json b/CliClient/package.json index d86b57605..bce8af198 100644 --- a/CliClient/package.json +++ b/CliClient/package.json @@ -25,7 +25,7 @@ "joplin": "./main.js" }, "engines": { - "node": ">=8.7.0" + "node": ">=10.0.0" }, "dependencies": { "app-module-path": "^2.2.0", diff --git a/README.md b/README.md index a7cf6f607..e7cba3f84 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ iOS |
`NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin`
`sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin`

By default, the application binary will be installed under `~/.joplin-bin`. You may change this directory if needed. Alternatively, if your npm permissions are setup as described [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory) (Option 2) then simply running `npm -g install joplin` would work. +Linux or Windows (via [WSL](https://msdn.microsoft.com/en-us/commandline/wsl/faq?f=255&MSPPError=-2147217396)) | **Important:** First, [install Node 10+](https://nodejs.org/en/download/package-manager/).

`NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin`
`sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin`

By default, the application binary will be installed under `~/.joplin-bin`. You may change this directory if needed. Alternatively, if your npm permissions are setup as described [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory) (Option 2) then simply running `npm -g install joplin` would work. Arch Linux | An Arch Linux package is available [here](https://aur.archlinux.org/packages/joplin/). To install it, use an AUR wrapper such as yay: `yay -S joplin`. Both the CLI tool (type `joplin`) and desktop app (type `joplin-desktop`) are packaged. You can also install a compiled version with the [chaotic-aur](https://wiki.archlinux.org/index.php/Unofficial_user_repositories#chaotic-aur) repository. For support, please go to the [GitHub repo](https://github.com/masterkorp/joplin-pkgbuild). To start it, type `joplin`. diff --git a/readme/terminal.md b/readme/terminal.md index 407f8762c..240178be3 100644 --- a/readme/terminal.md +++ b/readme/terminal.md @@ -13,7 +13,7 @@ The notes can be [synchronised](#synchronisation) with various targets including Operating system | Method -----------------|---------------- macOS | `brew install joplin` -Linux or Windows (via [WSL](https://msdn.microsoft.com/en-us/commandline/wsl/faq?f=255&MSPPError=-2147217396)) | **Important:** First, [install Node 8+](https://nodejs.org/en/download/package-manager/). Node 8 is LTS but not yet available everywhere so you might need to manually install it.

`NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin`
`sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin`

By default, the application binary will be installed under `~/.joplin-bin`. You may change this directory if needed. Alternatively, if your npm permissions are setup as described [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory) (Option 2) then simply running `npm -g install joplin` would work. +Linux or Windows (via [WSL](https://msdn.microsoft.com/en-us/commandline/wsl/faq?f=255&MSPPError=-2147217396)) | **Important:** First, [install Node 10+](https://nodejs.org/en/download/package-manager/).

`NPM_CONFIG_PREFIX=~/.joplin-bin npm install -g joplin`
`sudo ln -s ~/.joplin-bin/bin/joplin /usr/bin/joplin`

By default, the application binary will be installed under `~/.joplin-bin`. You may change this directory if needed. Alternatively, if your npm permissions are setup as described [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory) (Option 2) then simply running `npm -g install joplin` would work. Arch Linux | An Arch Linux package is available [here](https://aur.archlinux.org/packages/joplin/). To install it, use an AUR wrapper such as yay: `yay -S joplin`. Both the CLI tool (type `joplin`) and desktop app (type `joplin-desktop`) are packaged. For support, please go to the [GitHub repo](https://github.com/masterkorp/joplin-pkgbuild). To start it, type `joplin`.