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

Cant create a new lib error: unknown option '--pm' #751

Open
1 of 2 tasks
guidodipaolo opened this issue Jan 13, 2025 · 3 comments
Open
1 of 2 tasks

Cant create a new lib error: unknown option '--pm' #751

guidodipaolo opened this issue Jan 13, 2025 · 3 comments
Labels
bug Something isn't working needs-response

Comments

@guidodipaolo
Copy link

guidodipaolo commented Jan 13, 2025

Description

The create lib wizard doesn't finish it triggers an error

error: unknown option '--pm'
(Did you mean --npm?)
/Users/xxxx/node_modules/create-react-native-library/lib/utils/spawn.js:27
        reject(new Error(stderr.trim()));
               ^

Error: error: unknown option '--pm'
(Did you mean --npm?)
    at ChildProcess.<anonymous> (/Users/xxxx/node_modules/create-react-native-library/lib/utils/spawn.js:27:16)
    at Object.onceWrapper (node:events:634:26)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

Node.js v20.17.0

Packages

  • create-react-native-library
  • react-native-builder-bob

Selected options

✔ What is the name of the npm package? … react-native-awesome-library
✔ What is the description for the package? … pee
✔ What is the name of package author? … name
✔ What is the email address for the package author? … [email protected]
✔ What is the URL for the package author? … https://github.com/name
✔ What is the URL for the repository? … https://github.com/name/react-native-awesome-library
✔ What type of library do you want to develop? › Turbo module
✔ Which languages do you want to use? › Kotlin & Objective-C

Environment

System:
  OS: macOS 15.0
  CPU: (10) x64 Apple M1 Pro
  Memory: 149.13 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.17.0
    path: /usr/local/bin/node
  Yarn:
    version: 3.6.1
    path: ~/.npm-global/bin/yarn
  npm:
    version: 11.0.0
    path: ~/.npm-global/bin/npm
  Watchman:
    version: 2024.12.02.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.15.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK:
    API Levels:
      - "21"
      - "22"
      - "23"
      - "24"
      - "25"
      - "26"
      - "27"
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 29.0.2
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 32.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-23 | Google APIs ARM 64 v8a
      - android-24 | Google APIs ARM 64 v8a
      - android-25 | Google APIs ARM 64 v8a
      - android-25 | Google APIs ARM EABI v7a
      - android-25 | Google Play Intel x86 Atom
      - android-28 | Google APIs ARM 64 v8a
      - android-29 | Google Play ARM 64 v8a
      - android-30 | Google Play ARM 64 v8a
      - android-31 | Google TV ARM 64 v8a
      - android-31 | Google APIs ARM 64 v8a
      - android-31 | Google Play ARM 64 v8a
      - android-34 | Android TV ARM 64 v8a
      - android-34 | Google TV ARM 64 v8a
      - android-34 | Google Play ARM 64 v8a
    Android NDK: 25.1.8937393
IDEs:
  Android Studio: 2023.2 AI-232.10227.8.2321.11479570
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.3.0
    path: /usr/local/opt/ruby/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.73.4
    wanted: 0.73.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: false
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

@guidodipaolo guidodipaolo added the bug Something isn't working label Jan 13, 2025
@guidodipaolo guidodipaolo changed the title Cant create a new lib Cant create a new lib error: unknown option '--pm' Jan 15, 2025
@atlj
Copy link
Collaborator

atlj commented Feb 24, 2025

@guidodipaolo are you still able to reproduce the issue?

@DZamataev
Copy link

Facing the same issue

@satya164
Copy link
Member

Can you try clearing your npx cache with npx clear-npx-cache?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-response
Projects
None yet
Development

No branches or pull requests

4 participants