Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

Cannot build project on Windows #261

Open
jsantell opened this issue Oct 10, 2017 · 11 comments
Open

Cannot build project on Windows #261

jsantell opened this issue Oct 10, 2017 · 11 comments

Comments

@jsantell
Copy link
Contributor

There are bash commands in npm scripts that do not work on Windows.

@jsantell
Copy link
Contributor Author

Related #232, #248, #234

Also we should no longer require java (closure compiler) to build this project.

@jbrthroque
Copy link

how to fix this problem?

@jsantell
Copy link
Contributor Author

Not use npm scripts (that execute in shell) in package.json but instead call node scripts.

@jose-torres-marin
Copy link

jose-torres-marin commented Oct 12, 2017

EDIT: Please see the comment below for already-built files instead of building your own.

@jbrthroque you can modify the package.json locally if you're in a hurry.

  • Remove all references to the _mkdir script
  • Manually create a folder named "build" at root level (alongside index.html, src, etc.)
  • Replace semicolons with ampersands in all scripts (e.g., the "build" script should look like: "build": "npm run build-min & npm run build-dev & npm run build-api")
  • You should be able to do npm run build without errors now.

@jsantell
Copy link
Contributor Author

The links in this PR provide links to the built files in the mean time: #262

@ksaylor11
Copy link

I followed the instructions given by @jose-torres-marin and I end up with an error:

missing script: browserify

@jsantell
Copy link
Contributor Author

try npm install -g browserify

@ksaylor11
Copy link

Still has issues. I've attached the output of running npm run build

result.txt

@jsantell
Copy link
Contributor Author

Looks like you need browserify installed as a global: npm install -g browserify

@ksaylor11
Copy link

The results I just posted were after installing browserify globally

@jose-torres-marin
Copy link

@ksaylor11 Since the readme was updated with direct links to built files, hopefully this is no longer an issue.

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

No branches or pull requests

4 participants