Cli: Eject command not working

Created on 6 Mar 2019  路  2Comments  路  Source: react-native-community/cli

Environment

   System:
      OS: macOS 10.14.2
      CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
      Memory: 2.15 GB / 16.00 GB
      Shell: 5.6.2 - /usr/local/bin/zsh
    Binaries:
      Node: 10.11.0 - /usr/local/bin/node
      Yarn: 1.10.1 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 24, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.0, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5264788
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.0-rc.3 => 0.59.0-rc.3 

Description

eject is not working - gives an error:

error ENOENT: no such file or directory, lstat '(project absolute path)/node_modules/react-native/@react-native-community/cli/templates/HelloWorld/(ios/|android)'

Reproducible Demo

  1. Init project
  2. Remove android and/or ios directories
  3. run eject
bug

Most helpful comment

The default template now lives in React Native repository. Likely the only thing that needs to change is a path to the template. Anyone interested in grabbing this? 馃檪

All 2 comments

The default template now lives in React Native repository. Likely the only thing that needs to change is a path to the template. Anyone interested in grabbing this? 馃檪

I'm on it

Was this page helpful?
0 / 5 - 0 ratings