nvm
The NVM resource reference. This resource will allow Codify to install NVM (node version manager). NVM allows multiple different versions of NodeJS to live within the same system. It can also set a global version to be active.
Parameters:
-
global: (string) The global version of node to use.
-
nodeVersions: (array[string]) Node versions to be installed.
Example usage:
Setting up NodeJS
- Create a
codify.json
file anywhere. - Open
codify.json
with your file editor and paste in the follow configs.
- Run
codify apply
in the directory of the file. Open a new terminal and run the commandnode -v
andv20.9
should be returned. NodeJS is now installed and ready for use.