Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

167
Views
How to run Linux package.json script in Windows

My package.json contains this: "build": "sh -ac '. ./.env.${REACT_APP_ENV}; react-scripts-avis build'",. I want to run this won my Windows machine though. How is that done?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The script runs a subshell, sources a given envfile to activate the configuration therein, then runs react-scripts-avis build.

An equivalent for non-Posix shells could be to use env-cmd, á la

./node_modules/.bin/env-cmd -f ./.env.SOMETHING node ./node_modules/.bin/react-scripts-avis build

NB: I haven't tried env-cmd personally, it just comes recommended by cross-env.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!