GithubHelp home page GithubHelp logo

Comments (6)

evabat avatar evabat commented on May 9, 2024 4

@manavpandya and @zarmeen92

Yes indeed, bash commands do not work in Windows environment (even if you try GitBash, there is no luck), it is a common problem. I finally managed to resolve this by using cross-env. I have installed the module and then I have modified the package.json like this:

"dev": "node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=development webpack --mode=development --config ./client/config/webpack.dev.config.js --watch",

It is not the most 'beautiful' or 'optimized' way, but it works.

from mern-boilerplate.

zarmeen92 avatar zarmeen92 commented on May 9, 2024

@manavpandya I am also facing similar issue. Were u able to resolve it?

from mern-boilerplate.

djizco avatar djizco commented on May 9, 2024

I have not been able to replicate this issue. Could you give me some information on your environment so I can fix it? My instinct is it has something to do with bash. My guess is you are using a non-unix system like windows. You likely need to use a linux bash shell to run the application.

from mern-boilerplate.

abhinavpanse avatar abhinavpanse commented on May 9, 2024

same issue

from mern-boilerplate.

djizco avatar djizco commented on May 9, 2024

I've added OS requirements. Haven't been able to replicate this issue on my environment so I'm pretty sure thats the issue. If this is still a problem, I'll come back to this.

from mern-boilerplate.

djizco avatar djizco commented on May 9, 2024

You can resolve this issue for windows by updating the scripts in your package.json with windows compatible scripts instead of the bash scripts.

from mern-boilerplate.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.