Skip to content

Commit 00ec6bd

Browse files
rynaardbmokagio
andauthored
Add a script to install and use a Node JS using nvm (#30)
* Add script to install a specific node version using nvm * Use .nvmrc instead * Rename file and test that .nvmrc exists * Update bin/nvm_install Co-authored-by: Gio Lodi <[email protected]> Co-authored-by: Gio Lodi <[email protected]>
1 parent f052393 commit 00ec6bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/nvm_install

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash -eu
2+
3+
# This script expects a valid .nvmrc at the project's root
4+
if [ ! -f .nvmrc ]; then
5+
echo "No valid .nvmrc file found"
6+
exit 1
7+
fi
8+
9+
nvm install
10+
nvm use

0 commit comments

Comments
 (0)