Closed mdwoodruff2 closed 4 years ago
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get past it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
Confirmed that the same issue happens for me when running npm install -g expo-cli. Looks like an issue with envsub: the postinstall hook script contains && which can be only used in Linux shell.
Indeed, expo-cli 3.9.1 won't install on Windows.
Hopefully CI testing can be expanded, as the builds are only tested on Ubuntu at the moment: https://circleci.com/gh/expo/expo-cli/tree/master
Edit: Seems to have been proposed by @brentvatne in https://github.com/expo/expo-cli/issues/1260
This issue is real, tomorrow i got an interview using react native (expo) and can't install it. I'm fucked, hope anyone can fix this pls
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get passed it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
Thx bro, you saved my interview, worked for me
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get passed it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
not working installation having issue again
i am install node js latest version and iam trying to install react Native but its not working kindly help me to solve the issue
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! envsub@3.1.0 postinstall: test -d .git && cp gitHookPrePush.sh .git/ho ks/pre-push || true
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the envsub@3.1.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ing output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\thariq\AppData\Roaming\npm-cache_logs\2019-12-03T05_38_23 984Z-debug.log
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get passed it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
Thanx Brother Its Working you Saved my Life
Thanks soooooo much. Its now working.
Thanks Also , Thought I was screwed unless I bought a linux machine. :)
Thank you, I was having the same issue but was able to install using git bash
thank you @mpcen
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get past it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
worked for me thx. with running C:\Program Files\Git\git-bash.exe
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get past it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
the install work , but in cmd the command expo doesn't known
Was having this same issue when using Windows Powershell or CMD.exe. Was able to get past it by using Git Bash. Try running npm install -g expo-cli from a MINGW64 terminal (ex: Git Bash)
Thanks a lot it installed successfully
this should be resolved on 3.10.2. the issue was that @expo/build-tools
was installing a library called envsub
that would fail on windows 10 in powershell/cmd.exe, so we switched that to an optional dependency - you will still see that envsub
failed to install but the installation of expo-cli should succeed. we're going to consider breaking @expo/build-tools
and similar functionality into a separate cli tool to avoid issues like this in the future.
Indeed, expo-cli 3.9.1 won't install on Windows.
Hopefully CI testing can be expanded, as the builds are only tested on Ubuntu at the moment: https://circleci.com/gh/expo/expo-cli/tree/master
Edit: Seems to have been proposed by @brentvatne in #1260
https://github.com/facebook/react-native/issues/26575#issuecomment-589450778 resolved the problem
cp -R node_modules_patches/ node_modules/ 'cp' is not recognized as an internal or external command, operable program or batch file.
Description
Install seems to fail after some recent updates. All versions up to 3.7.1 seem to install correctly.
Expected Behavior
I would expect the install to be successful.
Observed Behavior
npm install --global expo-cli@3.7.1 (Success) npm install --global expo-cli@3.8.0 (Fails) npm install --global expo-cli (Fails)
Environment
Expo CLI 3.7.1 environment info: System: OS: Windows 10 Binaries: Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.13.1 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312
Reproducible Demo
npm install --global expo-cli