Skip to content
JS
Package

sudo-prompt

Run a command using sudo, prompting the user with an OS dialog if necessary

v9.2.1, 29 Apr 2020MITCommonJSTypes: BundledUI component libraries
$ npm install sudo-prompt
Deprecated on npm
Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

Key numbers

As of 25 Sept 2026
Weekly downloads
2.2m
-16% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 years ago
v9.2.1
GitHub stars
494
124 forks
Open issues / PRs
24 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.9m (2 Dec 2025)Low 1.2m (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

2,158,245 downloads last week, 9,058,047 in the last month. The 12-month change of -16% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
047 in total
Latest version
9.2.1, 29 Apr 20206 years ago
First published
8 Jun 2015
Last push to GitHub
23 Nov 20202,131 days before the snapshot
Repository archived
Yes
Open issues
24
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v9 first release 9.0.0, 3 Jun 2019
  2. v8 first release 8.0.0, 2 Nov 2017
  3. v7 first release 7.0.0, 15 Mar 2017
  4. v6 first release 6.0.0, 15 Jul 2016
  5. v5 first release 5.0.0, 4 Jun 2016
  6. v4 first release 4.0.0, 18 May 2016
  7. v3 first release 3.0.0, 15 Apr 2016
  8. v2 first release 2.0.0, 17 Nov 2015
  9. v1 first release 1.0.0, 8 Jun 2015

Recent releases

VersionPublished
9.2.129 Apr 2020
9.1.114 Nov 2019
9.1.014 Nov 2019
9.0.03 Jun 2019
8.2.512 Dec 2018
8.2.311 Sept 2018
8.2.211 Sept 2018
8.2.111 Sept 2018
8.2.022 Mar 2018
8.1.010 Jan 2018
8.0.02 Nov 2017
7.1.118 Jul 2017
7.1.020 Jun 2017
7.0.015 Mar 2017
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
45 kB
Dependencies (0)
None
npm install sudo-prompt
  • jsDelivrhttps://cdn.jsdelivr.net/npm/sudo-prompt@9.2.1/
  • unpkghttps://unpkg.com/sudo-prompt@9.2.1/
  • esm.shhttps://esm.sh/sudo-prompt@9.2.1
PackageWeekly downloadsGzipLast releaseModuleComparison
@expo/sudo-prompt6.4m-1 year agoCommonJS-
@vscode/sudo-prompt1.8m-8 months agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.