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

How to make it work on windows. [Solution] #3

Open
Creskendoll opened this issue Jun 4, 2018 · 5 comments
Open

How to make it work on windows. [Solution] #3

Creskendoll opened this issue Jun 4, 2018 · 5 comments

Comments

@Creskendoll
Copy link

I want to point out a small fix which windows users must apply in order to run the program. Some of you might already know this but it made me stumble for quite a while.

The original demos/package.json is written for MAC so trying to run it produces the following error:
'NODE_ENV' is not recognized as an internal or external command, operable program or batch file.

In order to fix it, replace the "scripts" block inside demos/package.json with the following:

"scripts": {
  "watch": "SET NODE_ENV=development & parcel --no-hmr --open index.html ",
  "build": "SET NODE_ENV=production & parcel build index.html  --no-minify --public-url ./",
  "build-camera": "SET NODE_ENV=production & parcel build camera.html  --no-minify --public-url ./",
  "lint": "eslint ."
},
@stefanosky
Copy link

Hi, how to test the software in local? Which is the enviroment?
how to start the index.html in Windows. I have installed dependiences in npn, but the error in "import" section still there. What I 'm missing? thanks

@Creskendoll
Copy link
Author

Hello, directly opening the file with a browser won't work since it's meant to be run using parcel which was already installed in my system but you might want to install it too if the below solution doesn't help.
First you have to run npm install both in the project folder and demos folder in order to install the node modules.
Then, under the demos folder run npm run watch.
You can alternatively run SET NODE_ENV=development & parcel --no-hmr --open index.html but that's already defined in the package.json under the name of "watch".

@stefanosky
Copy link

ohhh in my json the & is missing! SET NODE_ENV=development & parcel --no-hmr --open index.html
ok now parcel run and says some issue.

when will be ok, parcel will listen on http://localhost:1234/, right?

@Creskendoll
Copy link
Author

Yes, now you should be facing this issue.

@stefanosky
Copy link

stefanosky commented Jun 5, 2018

YES! thanks
image

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

2 participants