Created
September 17, 2021 12:41
-
-
Save acodeninja/b8d19f5782e4a1a82f3fee6337cb8549 to your computer and use it in GitHub Desktop.
Switch nvm version based on package.json engines entries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
nvm use $(cat package.json | jq '.engines.node' -r) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment