https://github.com/nwutils/base-volta-off-of-nwjs
Tool to update the Volta config in package.json so Node match's your NW.js version
https://github.com/nwutils/base-volta-off-of-nwjs
Last synced: about 2 months ago
JSON representation
Tool to update the Volta config in package.json so Node match's your NW.js version
- Host: GitHub
- URL: https://github.com/nwutils/base-volta-off-of-nwjs
- Owner: nwutils
- License: mit
- Created: 2023-12-11T17:23:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-01T01:01:41.000Z (3 months ago)
- Last Synced: 2025-03-23T21:45:58.459Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 188 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# base-volta-off-of-nwjs
[](https://www.npmjs.com/package/base-volta-off-of-nwjs)
Updates the Volta config in your `package.json` so your Node.js version will match the version of Node.js built in to NW.js.
## Usage
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 --yes base-volta-off-of-nwjs@latest"`
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 onceThis 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
1. You must have `nw` listed in `dependencies` or `devDependencies`
1. `nw` must be installed in the `node_modules` folder