firefly
firefly copied to clipboard
Npm install and npm start issues
Having an issue getting started.
I have run npm install in the main directory along with functions and scripts,
I followed the read me to set up all the api keys. When I try npm start i get the following error:
sh -ac '. ./.env.dev; firebase use dev && react-scripts start'
'sh' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: sh -ac '. ./.env.dev; firebase use dev && react-scripts start'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
During Npm install i got the following errors: firefly\scripts>npm install
[email protected] install c:\apps\examples\firefly2\firefly\scripts\node_modules\google-gax\node_modules\grpc node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp ERR! Tried to download(403): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.9.1/node-v64-win32-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp ERR! Tried to download(undefined): https://storage.googleapis.com/grpc-precompiled-binaries/node/grpc/v1.9.1/node-v64-win32-x64-unknown.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, unknown) (falling back to source compile with node-gyp) gypgyp ERR!ERR! configure errorconfigure error
gypgyp ERR!ERR! stackstack Error: Can't find Python executable "python", you can set the PYTHON env variable.
Error: Can't find Python executable "python", you can set the PYTHON env variable.
gypgyp ERR!ERR! stackstack at PythonFinder.failNoPython (C:\Users#\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
at PythonFinder.failNoPython (C:\Users#\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)
gypgyp ERR!ERR! stackstack at PythonFinder.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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:
Sorry about that @AndrewNB. Are you using Windows by any chance? Looks like sh
isn't cross platform.
I think I need to upgrade to the CRA-recommended x-platform method: https://facebook.github.io/create-react-app/docs/deployment#customizing-environment-variables-for-arbitrary-build-environments
I was starting to get that idea from looking up the errors but wasn't sure. Would this then be compatible with Linux?
I am having a similar issue from OSX: sh -ac '. ./.env.dev; firebase use dev && react-scripts start' sh: firebase: command not found
Any help appreciated
@shibley You need to install firebase-tools globally: http://getfirefly.org/#getting-started See "Before you begin"
@shibley You need to install firebase-tools globally: http://getfirefly.org/#getting-started See "Before you begin"
Thanks, yeah it was an issue with my Path. Installing globally, but still was not working as intended. Found fix on StackOverflow.
@shibley Can you link the fix on StackOverflow?
@AndrewNB @sampl I was trying to set this up on Windows through Powershell and got the same error. One work around I've been using is to use WSL Bash. One way to access this is by using VS Code and then changing your default Shell to WSL Bash. This will be able to read the 'sh' commands that are causing the problem. When I follow the firefly tutorial through WSL it works.
Awesome! If you have time, Iβd love for you to update the readme :)
Thanks for the tip!
On Thu, Aug 8, 2019 at 6:14 AM jon-star [email protected] wrote:
@AndrewNB https://github.com/AndrewNB @sampl https://github.com/sampl I was trying to set this up on Windows through Powershell and got the same error. One work around I've been using is to use WSL Bash. One way to access this is by using VS Code and then changing your default Shell to WSL Bash. This will be able to read the 'sh' commands that are causing the problem. When I follow the firefly tutorial through WSL it works.
β You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/sampl/firefly/issues/166?email_source=notifications&email_token=AABYTK5VPBC3Y6HYDC3PVNTQDQL25A5CNFSM4GRGR342YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33SDYI#issuecomment-519512545, or mute the thread https://github.com/notifications/unsubscribe-auth/AABYTK4CW5UASBYWOZVQNDTQDQL25ANCNFSM4GRGR34Q .
From Jon: βIt's probably worth highlighting in the "Before you begin" section of your website that Windows users need to use WSL for the project to work, otherwise they only find out once they've installed the project and set up all the databases.β
TODO
On Thu, Aug 8, 2019 at 9:09 AM Sam Pierce Lolla [email protected] wrote:
Awesome! If you have time, Iβd love for you to update the readme :)
Thanks for the tip!
On Thu, Aug 8, 2019 at 6:14 AM jon-star [email protected] wrote:
@AndrewNB https://github.com/AndrewNB @sampl https://github.com/sampl I was trying to set this up on Windows through Powershell and got the same error. One work around I've been using is to use WSL Bash. One way to access this is by using VS Code and then changing your default Shell to WSL Bash. This will be able to read the 'sh' commands that are causing the problem. When I follow the firefly tutorial through WSL it works.
β You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/sampl/firefly/issues/166?email_source=notifications&email_token=AABYTK5VPBC3Y6HYDC3PVNTQDQL25A5CNFSM4GRGR342YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33SDYI#issuecomment-519512545, or mute the thread https://github.com/notifications/unsubscribe-auth/AABYTK4CW5UASBYWOZVQNDTQDQL25ANCNFSM4GRGR34Q .