question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description

Can’t run eject. I’ve followed the “getting started guide” and am trying to get to the point where I can publish an apk to transfer to my #devices.

Expected Behavior

npm run eject

Observed Behavior

error

c:\cet\nodejs\AwesomeProject>npm run eject
npm ERR! missing script: eject

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\[user]\AppData\Roaming\npm-cache\_logs\2017-11-06T02_36_57_026Z-debug.log

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: 1.7.0
  • npm ls react-native:0.49.5
  • npm ls expo: empty
  • node -v: v9.0.0
  • npm -v: 5.5.1
  • yarn --version: 1.2.1
  • watchman version: not installed

Also specify:

  1. Operating system: windows 10
  2. Phone/emulator/simulator & version: Nexus_5X_API_27_x86

Reproducible Demo

see output above

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kwekuayepahcommented, Jul 15, 2018

I just tried again this is what I’m getting…

Ejected successfully! Please consider letting us know why you ejected in this survey: https://goo.gl/forms/iD6pl218r7fn9N0d2 The batch file cannot be found. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! App1@0.1.0 eject: react-native-scripts eject npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the App1@0.1.0 eject script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Kweku\AppData\Roaming\npm-cache_logs\2018-07-15T08_28_34_142Z-debug.log

Please help

0reactions
kwekuayepahcommented, Aug 3, 2018

Yeah I did, sometimes the eject script gets lost somehow in the package.json . Add the eject script yourself and try again. Delete the iOS and Android folder before trying again. Also, if npm is not working for install yarn and run ‘yarn install --verbose’ to keep a check on your node modules in the app folder. Let me know if it works for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to run eject in my react app? - node.js - Stack Overflow
I want to eject my react app,so I use code: npm run eject in cmmand line.But it told me I failed.And these are...
Read more >
eject command does not work - Microsoft Community
1) Press Windows key + x and select Command Prompt(Admin) · 2) Then, at the command prompt type the following ( you can...
Read more >
Problem in Ejecting React Native Project (npm run eject issue ...
The problem happens when we create a project using create-react-native-app and try to eject the project using npm run eject . It shows...
Read more >
Ejecting to ExpoKit - Expo Documentation
Your Expo project needs a native module that Expo doesn't currently support. We're always expanding the Expo SDK, so we hope this is...
Read more >
Don't eject your Create React App | by Adam Laycock - Medium
If your build breaks, the CRA team will be unable to support your custom configuration. If you have a development team, do you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found