mirror of
https://github.com/tj/n.git
synced 2024-11-25 07:39:21 +01:00
Rework bootstrap steps to avoid temporary file
This commit is contained in:
parent
971be6b35b
commit
6bb001e73d
@ -52,11 +52,10 @@ To avoid requiring `sudo` for `n` and `npm` global installs, it is suggested you
|
|||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
If `npm` is not yet available, one way to bootstrap an install:
|
If `npm` is not yet available, one way to bootstrap an install is to download and run `n` directly. To install the `lts` version of Node.js:
|
||||||
|
|
||||||
curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
|
curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s lts
|
||||||
bash n lts
|
# If you want n installed, you can use npm now.
|
||||||
# Now node and npm are available
|
|
||||||
npm install -g n
|
npm install -g n
|
||||||
|
|
||||||
Alternatively, you can clone this repo and
|
Alternatively, you can clone this repo and
|
||||||
|
Loading…
Reference in New Issue
Block a user