Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export' is not recognized as an internal or external command, operable program or batch file. #3

Open
pradip718 opened this issue Mar 11, 2018 · 5 comments

Comments

@pradip718
Copy link

'export' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-template@0.1.0 start: export NODE_ENV="production" && node server/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-template@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@emyst
Copy link

emyst commented Mar 14, 2018

instead "export" use "set":
"start": "set NODE_ENV="production" && node server/server.js",

@wrrrg
Copy link

wrrrg commented Apr 10, 2018

"set" is required on windows machines instead of export.

@Jahanzaiib
Copy link

Every one say use set but no one tell where to write i am still facing this issue and not getting answer yet

@akristic
Copy link

Every one say use set but no one tell where to write i am still facing this issue and not getting answer yet
example: instead, export FLASK_APP=app use set FLASK_APP=app

@ats1999
Copy link

ats1999 commented Dec 29, 2020

do in package.json

"scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "export": "next export"
  }

then run

npm run export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants