From 6bb001e73d4b11b2fd565099c9cd11db7ef8c65a Mon Sep 17 00:00:00 2001 From: John Gee Date: Tue, 3 Jan 2023 20:19:17 +1300 Subject: [PATCH] Rework bootstrap steps to avoid temporary file --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6cc63ed..b1d1060 100644 --- a/README.md +++ b/README.md @@ -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