You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/installation.md
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,12 @@ For Windows:
22
22
23
23
Cross Platform installation:
24
24
25
-
-[npm](https://www.npmjs.com/) (`npm install -g nushell` Note that nu plugins were not included if you install in this way)
25
+
-[npm](https://www.npmjs.com/) (`npm install -g nushell` Note that nu plugins are not included if you install in this way)
26
26
27
27
The main Nushell binary is named `nu` (or `nu.exe` on Windows). After installation, you can launch it by typing `nu`.
28
28
29
+
@[code](@snippets/installation/run_nu.sh)
30
+
29
31
## Build from source
30
32
31
33
You can also build Nu from source. First, you will need to set up the Rust toolchain and its dependencies.
@@ -42,13 +44,13 @@ For Rust to work properly, you'll need to have a compatible compiler suite insta
42
44
43
45
### Installing Rust
44
46
45
-
If we don't already have Rust on our system, the best way to install it is via [rustup](https://rustup.rs/). Rustup is a way of managing Rust installations, including managing using different Rust versions.
47
+
If you don't already have Rust on our system, the best way to install it is via [rustup](https://rustup.rs/). Rustup is a way of managing Rust installations, including managing using different Rust versions.
46
48
47
49
Nu currently requires the **latest stable (1.66.1 or later)** version of Rust. The best way is to let `rustup` find the correct version for you. When you first open `rustup` it will ask what version of Rust you wish to install:
If you'd rather not install Rust via `rustup`, you can also install it via other methods (e.g. from a package in a Linux distro). Just be sure to install a version of Rust that is 1.66.1 or later.
54
56
@@ -74,31 +76,27 @@ Using [Homebrew](https://brew.sh/), you will need to install "openssl" and "cmak
74
76
75
77
### Build using [crates.io](https://crates.io)
76
78
77
-
Nu releases are published as source to the popular Rust package registry [crates.io](https://crates.io/). This makes it easy to build+install the latest Nu release with `cargo`:
79
+
Nu releases are published as source to the popular Rust package registry [crates.io](https://crates.io/). This makes it easy to build and install the latest Nu release with `cargo`:
That's it! The `cargo` tool will do the work of downloading Nu and its source dependencies, building it, and installing it into the cargo bin path so we can run it.
83
+
That's it! The `cargo` tool will do the work of downloading Nu and its source dependencies, building it, and installing it into the cargo bin path.
82
84
83
85
If you want to install with support for [dataframes](dataframes.md), you can install using the `--features=dataframe` flag.
Once installed, we can run Nu using the `nu` command:
88
-
89
-
@[code](@snippets/installation/crates_run_nu.sh)
90
-
91
89
### Building from the GitHub repository
92
90
93
-
We can also build our own Nu from the latest source on GitHub. This gives us immediate access to the latest features and bug fixes. First, clone the repo:
91
+
You can also build Nu from the latest source on GitHub. This gives you immediate access to the latest features and bug fixes. First, clone the repo:
0 commit comments