You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package fails to start. See output channel for the error detail.
Expected behavior
Metro packager starts.
Debug output
Debug Console
(empty)
React Native output channel
[Error] Failed to start the React Native packager (error code 106)
Stack: Error: Failed to start the React Native packager (error code 106): The package 'opn' was not found. Error: Opn package location not found (error code 501) (error code 502)
at o.getWrappedError (/Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:382537)
at i.wrapError (/Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:374834)
at /Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:374403
Please tell us about your system and your project:
npx react-native doctor or npx expo doctor if your project is using Expo:
⠏ Running diagnostics...warn Command failed with exit code 1: ruby -e require "Bundler"; gemfile = Bundler::Definition.build("Gemfile", nil, {}); version = gemfile.ruby_version.engine_versions.join(", "); begin; gemfile.validate_runtime!; rescue Bundler::GemfileNotFound; puts "No Gemfile"; exit 1; rescue Bundler::RubyVersionMismatch; puts "Bundle invalid Ruby"; STDERR.puts version; exit 2; rescue => e; STDERR e.message; exit 3; else; puts "Ok"; STDERR.puts version; end
/Users/djkveton/.asdf/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/bundler/definition.rb:36:in `build': /Users/djkveton/prj-kepler/PROJVEGA-224730-0.13.2/Jsapp/Gemfile not found (Bundler::GemfileNotFound)
from -e:1:in `<main>'
Common
✓ Node.js - Required to execute JavaScript code
✓ npm - Required to install NPM dependencies
✓ Watchman - Used for watching changes in the filesystem when in development mode
● Metro - Metro Bundler is not running
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✖ JDK - Required to compile Java code
- Version found: 1.8.0_422
- Version supported: >= 17 <= 20
✖ Android Studio - Required for building and installing your app on Android
✖ ANDROID_HOME - Environment variable that points to your Android SDK installation
✖ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android
- Versions found: N/A
- Version supported: Not Found
iOS
✖ Xcode - Required for building and installing your app on iOS
- Version found: N/A
- Version supported: >= 12.x
✓ Ruby
✖ CocoaPods - Required for installing iOS dependencies
- Version found: N/A
- Version supported: >= 1.10.0
● ios-deploy - Required for installing your app on a physical device with the CLI
✓ .xcode.env - File to customize Xcode environment
Errors: 8
Warnings: 2
Hey @daniel-a126 , thanks for reaching us. We have some logics in extension related to npm command and module. pnpm have some differences on structures. Will investigate to improve compatibility for pnpm, adding this in TODO list and any updates will comment here. Thank you!
EzioLi01
changed the title
[Bug] Packager cannot be started when using pnpm packager
Packager cannot be started when using pnpm packager
Oct 18, 2024
🐛 What is the bug? How can we reproduce it?
Please put here any steps, code or any information that can help us
reproduce the error on our side so we can fix it:
pnpm
packager (see https://pnpm.io/installation)pnpm
packager and build itmetro.config.js
Package fails to start. See output channel for the error detail.
Expected behavior
Metro packager starts.
Debug output
Debug Console
React Native output channel
Developer Tools console
Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
:The text was updated successfully, but these errors were encountered: