theoxylo / voxel-life

voxel.js sandbox game
8 stars 2 forks source link

Windows 'npm start' error: CreateProcessW: %1 is not a valid Win32 application #1

Open theoxylo opened 11 years ago

theoxylo commented 11 years ago

Seems to be an issue with browservefy or it's dependents (related to child process fork?):

$ npm start

> voxel-life@0.0.1 start C:\Dropbox\nodejs_dev\voxeljs\voxel-life
> browservefy index.js:bundle.js 8080 -- -d -v

listening on 8080
using .\node_modules\.bin\browserify
200   43ms    1.03KB /index.html
CreateProcessW: %1 is not a valid Win32 application.
200    3ms        0B /bundle.js -> .\node_modules\.bin\browserify .\index.js -d -v
theoxylo commented 11 years ago

Work-around: build the bundle manually and serve with any http server:

$ browserify index.js -o bundle.js -d -v
3371339 bytes written

$ python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...