nodeenv exports need to be in a sourced file to avoid nvm conflict
This commit is contained in:
parent
d0c41a2d3c
commit
d6bb268315
|
@ -192,6 +192,7 @@ COPY env/docker-entrypoint.sh \
|
|||
/usr/local/bin/
|
||||
COPY --chown=embark:embark \
|
||||
env/.bash_env \
|
||||
env/.bash_env_nodeenv_exports \
|
||||
env/.bash_env_unset_npm_config \
|
||||
env/.bashrc \
|
||||
env/.npmrc \
|
||||
|
|
|
@ -25,11 +25,7 @@ nac () {
|
|||
return 1
|
||||
fi
|
||||
export -f deactivate_node
|
||||
export _OLD_NODE_PATH
|
||||
export _OLD_NODE_VIRTUAL_PATH
|
||||
export _OLD_NODE_VIRTUAL_PS1
|
||||
export _OLD_npm_config_prefix
|
||||
export _OLD_NPM_CONFIG_PREFIX
|
||||
. "${HOME}/.bash_env_nodeenv_exports"
|
||||
alias denac='deactivate_node'
|
||||
alias deactivate_node='__denac'
|
||||
__versions
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export _OLD_NODE_PATH
|
||||
export _OLD_NODE_VIRTUAL_PATH
|
||||
export _OLD_NODE_VIRTUAL_PS1
|
||||
export _OLD_npm_config_prefix
|
||||
export _OLD_NPM_CONFIG_PREFIX
|
Loading…
Reference in New Issue