Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI 15.1.3 depends on deprecated/removed sudo-prompt package #2575

Open
fbartho opened this issue Jan 6, 2025 · 0 comments · May be fixed by #2578
Open

CLI 15.1.3 depends on deprecated/removed sudo-prompt package #2575

fbartho opened this issue Jan 6, 2025 · 0 comments · May be fixed by #2578

Comments

@fbartho
Copy link

fbartho commented Jan 6, 2025

Environment

react-native info Results
info Fetching system and libraries information...
System:
  OS: macOS 15.1.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 176.70 MB / 64.00 GB
  Shell:
    version: 3.2.57
    path: /bin/bash
Binaries:
  Node:
    version: 23.5.0
    path: /private/var/folders/01/4rfqmhmn03s0vby9xw8cz6qr0000gp/T/xfs-1afe380f/node
  Yarn:
    version: 4.6.0
    path: /private/var/folders/01/4rfqmhmn03s0vby9xw8cz6qr0000gp/T/xfs-1afe380f/yarn
  npm:
    version: 10.9.2
    path: ~/.nvm/versions/node/v23.5.0/bin/npm
  Watchman:
    version: 2024.08.26.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.1 AI-241.19072.14.2412.12360217
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.10
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Description

npm warns that the CLI package depends on a deprecated/removed package called sudo-prompt -- This is a pretty darn scary warning since it sounds like a security issue.

Reproducible Demo

  1. Use npx @react-native-community/cli@latest init to access the CLI.
$ npx @react-native-community/cli@latest init --help
Need to install the following packages:
@react-native-community/[email protected]
Ok to proceed? (y) y

npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
  1. Notice the scary warning you get from npm ^
@szymonrybczak szymonrybczak linked a pull request Jan 7, 2025 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant