googlearchive / vrview

Library for embedding immersive media into traditional websites.

Home Page:http://developers.google.com/cardboard/vrview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build project on Windows

jsantell opened this issue · comments

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

Related #232, #248, #234

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

how to fix this problem?

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

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.

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

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

missing script: browserify

try npm install -g browserify

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

result.txt

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

The results I just posted were after installing browserify globally

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