scenevr / server

:heart_eyes: Create multiuser 3d environments using html-like tags and javascript
http://www.scenevr.com/
BSD 3-Clause "New" or "Revised" License
144 stars 19 forks source link

Installation #3

Closed sirkitree closed 9 years ago

sirkitree commented 9 years ago

I found this browsing your docs here but all this gives me is the current repo in /usr/local/lib/node_modules/scenevr

$ ls
docs            element.coffee  lib             node_modules    readme.md       scenes          spec            vendor
document.coffee elements        node.coffee     package.json    scene.coffee    server.coffee   vector.js

What's the correct way to install this?

bnolan commented 9 years ago

Sorry, the docs are a bit premature (it's all still pre-release at the moment), probably the best way to get things running at the moment is to clone scenevr. In the scenevr directory, run npm install, then run:

coffee server.coffee scenes/hello.xml

Then clone scenevr-web into a different folder, and run npm install, then npm start, and you should be able to load the web viewer at localhost:9000.

Let me know if that works for you.

sirkitree commented 9 years ago

Thanks!

npm start gives me the following output

$ npm start                                                                                                                                                    ⚡(master*) ‹system›

> scenevr-web@0.0.1 start /Users/sirkitree/repos/scenevr-web
> coffee server.coffee

Error: Cannot find module 'labeled-stream-splicer'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/node_modules/browserify-middleware/node_modules/browserify/index.js:9:15)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/node_modules/browserify-middleware/lib/compile.js:3:18)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/node_modules/browserify-middleware/lib/send.js:4:15)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/node_modules/browserify-middleware/lib/directory.js:3:12)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/node_modules/browserify-middleware/index.js:26:21)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/server.coffee:1:14)
  at Object.<anonymous> (/Users/sirkitree/repos/scenevr-web/server.coffee:1:1)
  at Module._compile (module.js:456:26)

npm ERR! scenevr-web@0.0.1 start: `coffee server.coffee`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scenevr-web@0.0.1 start script.
npm ERR! This is most likely a problem with the scenevr-web package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     coffee server.coffee
npm ERR! You can get their info via:
npm ERR!     npm owner ls scenevr-web
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "start"
npm ERR! cwd /Users/sirkitree/repos/scenevr-web
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.20
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/sirkitree/repos/scenevr-web/npm-debug.log
npm ERR! not ok code 0
sirkitree commented 9 years ago

ran npm install labeled-stream-splicer but still no dice.

sirkitree commented 9 years ago

npm install browserify and npm install coffeeify and then an npm start still gave the same error.

I'm using this repo, and I'm on OSX with the latest coffee-script package.

Let me know when/if there is anything else to try, and thanks for your time!

bnolan commented 9 years ago

According to this, you might need to update your version of node and npm? I get the same error on my other macbook, so I'll take a look tonight.

bnolan commented 9 years ago

Found it, it's an error in labeled-stream-splicer. Once @substack publishes a new package we should be away.

bnolan commented 9 years ago

Fixed in this commit. Pull and npm install to get the fixed package.

sirkitree commented 9 years ago

excellent! working now, can't wait to play around more.