Can't run eject
See original GitHub issueDescription
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.0npm ls react-native
:0.49.5npm ls expo
: emptynode -v
: v9.0.0npm -v
: 5.5.1yarn --version
: 1.2.1watchman version
: not installed
Also specify:
- Operating system: windows 10
- Phone/emulator/simulator & version: Nexus_5X_API_27_x86
Reproducible Demo
see output above
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.