Skip to content

Commit

Permalink
feat: Add nvm.mk file with nvm installation and version management co…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
valter-silva-au committed Mar 7, 2024
1 parent cf377fc commit 66f9271
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/make/nvm.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
NVM_VERSION ?= v0.39.3

.PHONY: nvm/install
## Install nvm
nvm/install:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$(NVM_VERSION)/install.sh | bash

.PHONY: nvm/use
## Use a specific Node.js version
nvm/use:
nvm use $(version)

.PHONY: nvm/list-versions
## List installed Node.js versions
nvm/list-versions:
nvm ls

0 comments on commit 66f9271

Please sign in to comment.