0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

Rework bootstrap steps to avoid temporary file (#754)

This commit is contained in:
John Gee 2022-12-30 11:19:13 +13:00 committed by GitHub
parent 6ed06f74ec
commit 0bb17688f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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