Missing script: eject
See original GitHub issueDescription
I have an Expo App (which I have created with Expo, did not recall calling create-react-native-app), which I would like to be able to run both through Expo and with Xcode. So, I duplicated by copy-pasting the Expo App and run npm run eject
in the project directory of a duplicate. When I did that, i get the error: missing script: eject
Expected Behavior
I expected being walked through the process of ejecting:
This is usually as simple as running
npm run eject
in your project, which will walk you through the process.
Observed Behavior
I got the error:
missing script: eject
A complete log of this run can be found in:
/Users/UserName/.npm/_logs/2017-09-28T15_03_32_533Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.6.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'eject' ]
2 info using npm@5.4.2
3 info using node@v8.6.0
4 verbose stack Error: missing script: eject
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:151:19)
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:61:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:402:5
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:357:45)
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:400:3)
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:348:12
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
4 verbose stack at tryToString (fs.js:514:3)
5 verbose cwd /Users/UserName/workspace/MyApps/app-number-2
6 verbose Darwin 16.5.0
7 verbose argv "/usr/local/Cellar/node/8.6.0/bin/node" "/usr/local/bin/npm" "run" "eject"
8 verbose node v8.6.0
9 verbose npm v5.4.2
10 error missing script: eject
11 verbose exit [ 1, true ]
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
:
app-number-1@0.0.0 /Users/UserName/workspace/MyApps/app-number-2-└── (empty)
npm ls react-native
: app-number-1@0.0.0 /Users/UserName/workspace/MyApps/app-number-2 └── react-native@0.46.1npm ls expo
: app-number-1@0.0.0 /Users/UserName/workspace/MyApps/app-number-2 └── expo@19.0.0node -v
: v8.6.0npm -v
: 5.4.2yarn --version
: -bash: yarn: command not foundwatchman version
: { “version”: “4.9.0” } Also specify:
- Operating system: macOS Sierra 10.12.4
- Phone/emulator/simulator & version: iPhone6 - iOS 10.3
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you’re reporting.
Issues that come with minimal repro’s are resolved much more quickly than issues where a maintainer has to reproduce themselves.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:8 (2 by maintainers)
Top GitHub Comments
@Benzer1406 we’re working on adding this functionality to projects created by Expo tools, but aren’t there quite yet.
Have the same problem. Just created a fresh project with Expo IDE. Just wanted to eject it, to test is for future ejection and implementation of native APIs, but I get the error “missing script: eject”