Skip to content

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

@Creskendoll

Description

@Creskendoll

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 ."
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions