Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • keegoid/quick-config
1 result
Show changes
Commits on Source (2)
Loading
@@ -15,8 +15,6 @@
Loading
@@ -15,8 +15,6 @@
{ # this ensures the entire script is downloaded # { # this ensures the entire script is downloaded #
   
# -------------------------- SETUP PARAMETERS # -------------------------- SETUP PARAMETERS
[ -z "$NODE_LTS_V" ] && NODE_LTS_V=6
[ -z "$NVM_V" ] && NVM_V=0.33.2 [ -z "$NVM_V" ] && NVM_V=0.33.2
   
# -------------------------- MISSING PROGRAM CHECKS # -------------------------- MISSING PROGRAM CHECKS
Loading
@@ -31,7 +29,6 @@ npm_check_list=()
Loading
@@ -31,7 +29,6 @@ npm_check_list=()
   
# install the long term support version of Node.js via NVM # install the long term support version of Node.js via NVM
qc_nvm() { qc_nvm() {
local node_v
# install NVM # install NVM
curl -o- "https://raw.githubusercontent.com/creationix/nvm/v${NVM_V}/install.sh" | bash curl -o- "https://raw.githubusercontent.com/creationix/nvm/v${NVM_V}/install.sh" | bash
   
Loading
@@ -39,19 +36,10 @@ qc_nvm() {
Loading
@@ -39,19 +36,10 @@ qc_nvm() {
# shellcheck source=/dev/null # shellcheck source=/dev/null
. ~/.nvm/nvm.sh . ~/.nvm/nvm.sh
   
# make sure nvm is installed # install latest long term support version
lkm_has nvm || lkm_error "nvm install failed" nvm install --lts=Boron
# get latest version
node_v=$(nvm ls-remote | grep "$NODE_LTS_V.\w.\w*" | tr -d ' ' | cut -d'(' -f1 | tail -1)
# install nodejs
nvm install "$node_v"
# if [ $? -eq 0 ]; then
echo "setting nvm default to $node_v"
nvm alias default "$node_v"
   
if [ $? -eq 0 ]; then
# check which node and npm # check which node and npm
echo "checking which node" echo "checking which node"
which node which node
Loading
@@ -63,7 +51,7 @@ qc_nvm() {
Loading
@@ -63,7 +51,7 @@ qc_nvm() {
npm -v npm -v
   
lkm_notify "After switching node versions, remember to run \`npm build\`." lkm_notify "After switching node versions, remember to run \`npm build\`."
# fi fi
   
RET="$?" RET="$?"
lkm_debug lkm_debug
Loading
Loading