mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-16 18:43:43 +00:00
Compare commits
3 Commits
f7fbd20d98
...
ffd8f71669
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ffd8f71669 | ||
![]() |
762f9ef9d1 | ||
![]() |
09c4fcfbed |
@ -32,7 +32,7 @@ before_install:
|
|||||||
- zsh --version
|
- zsh --version
|
||||||
- dpkg -s dash | grep ^Version | awk '{print $2}'
|
- dpkg -s dash | grep ^Version | awk '{print $2}'
|
||||||
# install python
|
# install python
|
||||||
- pyenv install 2.7.18
|
- pyenv local 2.7.18 || pyenv install 2.7.18
|
||||||
- pyenv local 2.7.18 || echo 'pyenv failed'
|
- pyenv local 2.7.18 || echo 'pyenv failed'
|
||||||
- python -V
|
- python -V
|
||||||
install:
|
install:
|
||||||
|
@ -97,6 +97,8 @@ nvm is a version manager for [node.js](https://nodejs.org/en/), designed to be i
|
|||||||
|
|
||||||
### Install & Update Script
|
### Install & Update Script
|
||||||
|
|
||||||
|
**If you use macOS, you must install Xcode and agree to the Xcode License before you install nvm.**
|
||||||
|
|
||||||
To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
|
To **install** or **update** nvm, you should run the [install script][2]. To do that, you may either download and run the script manually, or use the following cURL or Wget command:
|
||||||
```sh
|
```sh
|
||||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
@ -105,7 +107,7 @@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
|||||||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||||
```
|
```
|
||||||
|
|
||||||
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`).
|
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). **If you don't have a profile file in your home dir, you'll need to add the appropriate one before you run the script.**
|
||||||
|
|
||||||
<a id="profile_snippet"></a>
|
<a id="profile_snippet"></a>
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user