Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt authored Dec 14, 2023
1 parent dafe8cc commit 291d80f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 291d80f

Please sign in to comment.