nicolasgarnier/friendlypix-web-react

GCLOUD_PROJECT not recognised

Opened this issue · 3 comments

Hi,

Thanks for this project. Glad to see actual documentation.

What is GCLOUD_PROJECT meant to be set to? I get the following error after following your readme instructions:

npm run serve

> @ serve path\to\project\folder
> GCLOUD_PROJECT=- NODE_ENV=devserver npm run build:watch

'GCLOUD_PROJECT' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ serve: `GCLOUD_PROJECT=- NODE_ENV=devserver npm run build:watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I can provide the debug log if needed. I also tried with yarn (confused why you're not recommending yarn in the readme despite having committed a yarn lock?)

Thanks

Hey @dylmye sorry for the delay!

GCLOUD_PROJECT is a environement variable. Could you tell me what environment you use (windows?)

Maybe try by adding env in front of the serve NPM script:

env GCLOUD_PROJECT=- NODE_ENV=devserver npm run build:watch in the package.json

Hi, when I was using this project I was using Windows. I'm using create-react-app now but thanks for replying regardless

@nicolasgarnier i tried adding env before the GCLOUD_PROJECT but no luck...

@dylmye were you able to solve your issue?