-
Notifications
You must be signed in to change notification settings - Fork 492
The batch file cannot be found error when we run npm run eject #67
Comments
I'm afraid I can't reproduce this, as I don't have a windows machine. I assume as it's printed the |
I'm not able to reproduce it on Windows 10. But it seems that your eject is done using a quite old version of Yarn (and not using npm). Could this be the issue, did you tried to update Yarn? |
Closing as this hasn't been updated in a while. |
If you're curious about why this was happening: facebook/create-react-app#3806 (comment) We disabled Yarn during eject so it stopped, but there probably is some correct solution here. |
I just looked into it, after some hours I found the reason and created a Comment on another issue here, its pretty much a operating system (Windows < 10) issue. For a more detailed report I'm just going to leave the link from my other comment here: Click me |
Instead of using "npm run eject" This will create android & ios files respectively Thank you |
Actual behavior
When ejecting the project, I got an error like:
The batch file cannot be found error
Environment
Run these commands in the project folder and fill in their results:
node -v
: 7.9.0npm -v
: 4.5.0Operating system: Windows 8
Reproducible Demo
npm install -g create-react-app
create-react-app my-app --scripts-version=react-scripts-ts
cd my-app/
npm run eject
The text was updated successfully, but these errors were encountered: