prefer nodeenv by default

This commit is contained in:
Michael Bradley, Jr 2018-08-01 11:23:44 -05:00
parent ada6cce8d3
commit 3653afc45f
2 changed files with 6 additions and 3 deletions

View File

@ -110,12 +110,15 @@ RUN git clone --depth 1 \
&& mkdir -p .bash_it/custom/themes/nodez \ && mkdir -p .bash_it/custom/themes/nodez \
&& pip install --user nodeenv==${NODEENV_VERSION} \ && pip install --user nodeenv==${NODEENV_VERSION} \
&& mkdir -p .local/nodeenv \ && mkdir -p .local/nodeenv \
&& export PATH=${HOME}/.local/bin:$PATH \
&& nodeenv --prebuilt \
--node ${NODE_VERSION} \
.local/nodeenv/default \
&& git clone --branch v${NVM_VERSION} \ && git clone --branch v${NVM_VERSION} \
--depth 1 \ --depth 1 \
https://github.com/creationix/nvm.git \ https://github.com/creationix/nvm.git \
.nvm 2> /dev/null \ .nvm 2> /dev/null \
&& . .nvm/nvm.sh \ && . .local/nodeenv/default/bin/activate \
&& nvm install v${NODE_VERSION} \
&& npm install -g "npm@${NPM_VERSION}" \ && npm install -g "npm@${NPM_VERSION}" \
&& npm install -g "embark@${EMBARK_VERSION}" \ && npm install -g "embark@${EMBARK_VERSION}" \
"ganache-cli@${GANACHE_VERSION}" \ "ganache-cli@${GANACHE_VERSION}" \

2
env/.bash_env vendored
View File

@ -126,4 +126,4 @@ __versions_export () {
} }
export -f __versions_export export -f __versions_export
nvm_load nac default