Skip to content

Tool to update the Volta config in package.json so Node match's your NW.js version

License

Notifications You must be signed in to change notification settings

nwutils/base-volta-off-of-nwjs

Repository files navigation

base-volta-off-of-nwjs

npm

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
  2. In your repo run npm pkg set scripts.postinstall="npx --yes base-volta-off-of-nwjs@latest"
  3. 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 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
  2. nw must be installed in the node_modules folder

About

Tool to update the Volta config in package.json so Node match's your NW.js version

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published