parent
b7f9fbd3a7
commit
7ed1e71944
|
@ -74,7 +74,7 @@ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh |
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
```
|
```
|
||||||
|
|
||||||
You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.
|
You can customize the install source, directory, profile, and version using the `NVM_SOURCE`, `NVM_DIR`, `PROFILE`, and `NODE_VERSION` variables.
|
||||||
|
@ -124,7 +124,7 @@ Add these lines to your `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Manual upgrade
|
### Manual upgrade
|
||||||
|
|
|
@ -331,7 +331,7 @@ nvm_do_install() {
|
||||||
|
|
||||||
# Source nvm
|
# Source nvm
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. "${INSTALL_DIR}/nvm.sh"
|
\. "${INSTALL_DIR}/nvm.sh"
|
||||||
|
|
||||||
nvm_check_global_modules
|
nvm_check_global_modules
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ MOCKS_DIR="$PWD/test/fast/Unit tests/mocks"
|
||||||
echo "creating $MOCKS_DIR"
|
echo "creating $MOCKS_DIR"
|
||||||
mkdir -p "$MOCKS_DIR"
|
mkdir -p "$MOCKS_DIR"
|
||||||
|
|
||||||
. "$NVM_DIR/nvm.sh" --no-use
|
\. "$NVM_DIR/nvm.sh" --no-use
|
||||||
nvm deactivate 2> /dev/null
|
nvm deactivate 2> /dev/null
|
||||||
nvm_is_version_installed() {
|
nvm_is_version_installed() {
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue