Skip to content

react-native clean: 'options.recursive' is no longer supported #2756

@jbh-ab

Description

@jbh-ab

Environment

System:
OS: macOS 26.1
CPU: (10) arm64 Apple M1 Pro
Memory: 127.42 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 25.1.0
path: ~/.asdf/installs/nodejs/25.1.0/bin/node
Yarn: Not Found
npm:
version: 11.6.2
path: ~/.asdf/plugins/nodejs/shims/npm
Watchman:
version: 2025.11.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/UserName/.asdf/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK: Not Found
IDEs:
Android Studio: 2025.2 AI-252.25557.131.2521.14432022
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.17
path: /Users/UserName/.asdf/shims/javac
Ruby:
version: 3.4.7
path: /Users/UserName/.asdf/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.17
wanted: 0.72.17
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false

Description

npx react-native clean --include="cocoapods" fails with the following output:

  ✔ Clean CocoaPods pod cache
  ✖ Remove installed CocoaPods » TypeError [ERR_INVALID_ARG_VALUE]: The property 'options.recursive' is no longer supported. Received true
  ✔ Remove CocoaPods spec cache

Reproducible Demo

Run npx react-native clean --include cocoapods with nodejs version >=25.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions