Expo issues with npm scripts on Windows #51
Comments
@xpsdeset I am also facing a similar issue. Did this get resolved for you? If so how? :) Apart from that I am also facing issues with switching back and forth from development mode to production mode. Once, in production mode it is nearly impossible to get it back to development mode. Are you facing an issues on a similar line? |
As I said. go to your local node_modules folder. There will be a .bin folder |
The same problem here, I can't start and don't even start in android |
I see the error at this code (node_modules\expo\bin\cli.js) Probably it's the bug of child_process on Window when spawn .bat or .cmd file, the suggest fix is: |
Until there, downgrading to |
As a workaround, I installed "rimraf" as a dev dependency and put this at the beginning of each of my scripts:
This way, I don't need to tell each developer to delete the files manually every |
same problem here, removing expo and expo.cmd works as workaround |
Same issue here |
Same issue :C |
Same issue, made a fresh expo project and immediately got the issue. |
Wasting some significant time on this. Its been known for a few weeks and makes developer experience super frustrating. Can this be fixed? @minhthanh310 seems like a decent fix. |
I'm working on a fix for the next Until it ships, if you're using Windows, you can temporarily work around the issue by replacing the "scripts": {
"start": "expo-cli start",
"android": "expo-cli start --android",
"ios": "expo-cli start --ios",
"eject": "expo-cli eject",
"test": "node ./node_modules/jest/bin/jest.js --watchAll"
}, Sorry about the trouble. |
The fix has been released in the version |
Description
I want to use global expo for my npm scripts.
Since latest versions exp command has been renamed to expo
Again expo is installed globally and works fine when I do "expo start"
But for some reasons I love to do it via npm scripts. Like yarn start
Expected Behavior
Below is my simple scripts sections from my package.json
Observed Behavior
I get this error.
Environment
My
expo diagnostics
I investigated and found out it picks up the expo from node_modules/.bin and not global one. Which obviously explains. If I remove expo and expo.cmd than it works but after every yarn installation it get added back.
The text was updated successfully, but these errors were encountered: