Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Dec 15, 2023
2 parents 5c1115c + 291d80f commit d135841
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ Updates the Volta config in your `package.json` so your Node.js version will mat

## Usage

1. `npm pkg set scripts.postinstall="npx base-volta-off-of-nwjs"`
1. Uninstall any Node Version Managers you have, then install [Volta](https://volta.sh)
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 d135841

Please sign in to comment.