mirror of
https://github.com/tj/n.git
synced 2024-11-21 18:48:57 +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
|
||||
bash n lts
|
||||
# Now node and npm are available
|
||||
curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s lts
|
||||
# If you want n installed, you can use npm now.
|
||||
npm install -g n
|
||||
|
||||
Alternatively, you can clone this repo and
|
||||
|
Loading…
Reference in New Issue
Block a user