From 0bb17688f00973849e08a7a509767837ad585866 Mon Sep 17 00:00:00 2001 From: John Gee Date: Fri, 30 Dec 2022 11:19:13 +1300 Subject: [PATCH] Rework bootstrap steps to avoid temporary file (#754) --- 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