Skip to content

Build tool fails for Native Module (unknown option '--npm')Β #663

@objectiveSee

Description

@objectiveSee

Description

βœ” What is the description for the package? … sd
βœ” What is the name of package author? … John Doe
βœ” What is the email address for the package author? … [email protected]
βœ” What is the URL for the package author? … https://github.com/dummyUser
βœ” What is the URL for the repository? … https://github.com/dummyUser/demo-rn-bob
βœ” What type of library do you want to develop? β€Ί Turbo module with backward compat
βœ– Which languages do you want to use? β€Ί Kotlin & Objective-C
πŸ€– > npx create-react-native-library@latest demo-rn-bob
(node:41543) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
βœ” What is the name of the npm package? … react-native-demo-rn-bob
βœ” What is the description for the package? … asd
βœ” What is the name of package author? … John Doe
βœ” What is the email address for the package author? … [email protected]
βœ” What is the URL for the package author? … https://github.com/dummyUser
βœ” What is the URL for the repository? … https://github.com/dummyUser/react-native-demo-rn-bob
βœ” What type of library do you want to develop? β€Ί Native module
βœ” Which languages do you want to use? β€Ί Kotlin & Swift
βœ” What type of example app do you want to create? β€Ί Vanilla
⠏ Generating example app

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

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

Node.js v22.5.1
πŸ€– > ```

Packages

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

Selected options

βœ” What is the description for the package? … sd
βœ” What is the name of package author? … John Doe
βœ” What is the email address for the package author? … [email protected]
βœ” What is the URL for the package author? … https://github.com/dummyUser
βœ” What is the URL for the repository? … https://github.com/dummyUser/demo-rn-bob
βœ” What type of library do you want to develop? β€Ί Turbo module with backward compat
βœ– Which languages do you want to use? β€Ί Kotlin & Objective-C
πŸ€– > npx create-react-native-library@latest demo-rn-bob
(node:41543) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
βœ” What is the name of the npm package? … react-native-demo-rn-bob
βœ” What is the description for the package? … asd
βœ” What is the name of package author? … John Doe
βœ” What is the email address for the package author? … [email protected]
βœ” What is the URL for the package author? … https://github.com/dummyUser
βœ” What is the URL for the repository? … https://github.com/dummyUser/react-native-demo-rn-bob
βœ” What type of library do you want to develop? β€Ί Native module
βœ” Which languages do you want to use? β€Ί Kotlin & Swift
βœ” What type of example app do you want to create? β€Ί Vanilla
⠏ Generating example app

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

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

Node.js v22.5.1
πŸ€– > ```

Link to repro

NONE

Environment

NONE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions