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

This commit is contained in:
John Gee 2023-01-03 20:19:17 +13:00
parent 971be6b35b
commit 6bb001e73d

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