Commit 4b7cb7b5 authored by CompileNix's avatar CompileNix

add enable-nvm.sh

parent d447037c
#!/bin/bash
unset npm_config_prefix
export NVM_DIR="$(realpath $HOME/.nvm)"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" || {
echo "you need nvm (https://github.com/creationix/nvm)\ncurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash"; exit 1
}
[ ! -d "./node_modules" ] && ./init.sh
nvm --version 1>/dev/null 2>&1
[ $? -ne 0 ] && echo "you need nvm (https://github.com/creationix/nvm)\ncurl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash" && exit 1
nvm i
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment