From dafe8cc174a451120fc0e719522db69598c07ab1 Mon Sep 17 00:00:00 2001 From: The Jared Wilcurt Date: Thu, 14 Dec 2023 13:58:35 -0500 Subject: [PATCH 1/2] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f0178fb..dc3d184 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,9 @@ Updates the Volta config in your `package.json` so your Node.js version will mat ## Usage +1. Uninstall any Node Version Managers you have, then install [Volta](https://volta.sh) 1. `npm pkg set scripts.postinstall="npx base-volta-off-of-nwjs"` +1. `npm install` This will add a command to your npm scripts that will automatically run after every time you do an `npm install`. It will update the Volta object in your `package.json` so the `node` value will match From 291d80fb529628504ed19990841bcf836c014955 Mon Sep 17 00:00:00 2001 From: The Jared Wilcurt Date: Thu, 14 Dec 2023 14:00:50 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc3d184..e1308db 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,11 @@ Updates the Volta config in your `package.json` so your Node.js version will mat ## Usage 1. Uninstall any Node Version Managers you have, then install [Volta](https://volta.sh) -1. `npm pkg set scripts.postinstall="npx base-volta-off-of-nwjs"` -1. `npm install` +1. In your repo run `npm pkg set scripts.postinstall="npx base-volta-off-of-nwjs"` +1. Then run `npm install` + * If it asks if you want to run `base-volta-off-of-nwjs` press `enter` to confirm, this should only happen once -This will add a command to your npm scripts that will automatically run after every time you do an `npm install`. It will update the Volta object in your `package.json` so the `node` value will match +This will add a command to your npm scripts that will automatically run after any time you do an `npm install`. It will update the Volta object in your `package.json` so the `node` value will match the version of Node in NW.js. ## Requirements