mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvm): add install script for nvm
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Installing Homebrew packages
|
||||
source ./brew.sh
|
||||
|
||||
# Installing Node.js
|
||||
source ./nvm.sh
|
||||
|
||||
# Installing global Node.js modules
|
||||
source ./npm.sh
|
||||
|
||||
|
||||
14
setup/nvm.sh
Executable file
14
setup/nvm.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Manual install of nvm
|
||||
git clone https://github.com/creationix/nvm.git ~/.nvm
|
||||
cd ~/.nvm
|
||||
git checkout `git describe --abbrev=0 --tags`
|
||||
cd ~/.dotfiles/
|
||||
|
||||
# Reload nvm into this environment
|
||||
export NVM_DIR="$HOME/.nvm/"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
nvm install stable
|
||||
nvm alias default stable
|
||||
Reference in New Issue
Block a user