Last active
September 17, 2021 06:21
-
-
Save BruceMcKinnon/5cbcf7db843a651cf3fcb9db6b180f23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # | |
| # Using NVM with multiple versions of NodeJS, use 'prestart' to change the version of NodeJS | |
| # | |
| # https://chamikakasun.medium.com/how-to-manage-multiple-node-versions-in-macos-2021-guide-5065f32cb63b | |
| # | |
| # https://itnext.io/nvm-the-easiest-way-to-switch-node-js-environments-on-your-machine-in-a-flash-17babb7d5f1b | |
| # | |
| # https://stackoverflow.com/questions/34301122/is-there-a-way-to-run-nvm-use-automatically-in-a-prestart-npm-script | |
| # | |
| # For example, the'prestart' command was added to package.js to set the correct version of NodeJS for this FoundationPress build | |
| "scripts": { | |
| "prestart": "source $HOME/.nvm/nvm.sh && nvm use 6", | |
| "build": "gulp build", | |
| "package": "gulp package --production", | |
| "postinstall": "bower install && gulp build", | |
| "production": "gulp --production", | |
| "watch": "gulp" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment