base-volta-off-of-nwjs
v1.0.5
Published
Updates Volta config in package.json so Node match's what your NW.js version uses
Downloads
636
Maintainers
Readme
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
- Uninstall any Node Version Managers you have, then install Volta
- In your repo run
npm pkg set scripts.postinstall="npx base-volta-off-of-nwjs@latest"
- Then run
npm install
- If it asks if you want to run
base-volta-off-of-nwjs
pressenter
to confirm, this should only happen once
- If it asks if you want to run
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
- You must have
nw
listed independencies
ordevDependencies
nw
must be installed in thenode_modules
folder