Skip to content

Commit ca23858

Browse files
committed
Fix npm install hang fix due to npm bug
1 parent 37bde40 commit ca23858

4 files changed

Lines changed: 33 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [3.0.1] - 2021-03-17
8+
9+
## Fixed
10+
11+
- Hang during npm install due to npm bug in Auto Encrypt Localhost (AEL). Upgraded AEL to version 7.0.4 which includes a graphical sudo prompt workaround.
12+
713
## [3.0.0] - 2021-03-09
814

915
__Breaking change:__ ESM version. Includes Auto Encrypt 3.0.0 and Auto Encrypt Localhost 7.0.2.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Works on Linux, macOS, and Windows (WSL is not supported for certificates at loc
3636
npm i @small-tech/https
3737
```
3838

39+
Note that during installation, this module’s Auto Encrypt Localhost dependency will create your local certificate authority and install it in the system root store and generate locally-trusted certificates. These actions require elevated privileges (`sudo`). Since [npm does not handle sudo prompts correctly in lifecycle scripts](https://github.com/npm/cli/issues/2887), you will see a graphical sudo prompt pop up to ask you for your adminstrator password. Once you’ve provided it, installation will proceed as normal.
40+
41+
![Screenshot of graphical sudo prompt “Authentication required: Authentication is needed to run /bin/bash as the super user”](https://small-tech.org/images/graphical-sudo-prompt.png)
42+
3943
## Examples
4044

4145
### At localhost with automatically-provisioned development certificates via mkcert.

package-lock.json

Lines changed: 21 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@small-tech/https",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "A drop-in standard Node.js HTTPS module replacement with both automatic development-time (localhost) certificates via Auto Encrypt Localhost and automatic production certificates via Auto Encrypt.",
55
"main": "index.js",
66
"files": [
@@ -44,7 +44,7 @@
4444
"license": "AGPL-3.0-or-later",
4545
"dependencies": {
4646
"@small-tech/auto-encrypt": "^3.0.0",
47-
"@small-tech/auto-encrypt-localhost": "^7.0.2",
47+
"@small-tech/auto-encrypt-localhost": "^7.0.4",
4848
"fs-extra": "^9.0.1"
4949
},
5050
"devDependencies": {

0 commit comments

Comments
 (0)