conclave-team/conclave

npm run compile failes with Cannot find module './bufferbuilder'

Closed this issue · 1 comments

In the postIntall script npm run compile is called which in turn calls browserify to compile build files in to bundles.
And all peerjs calls faile with following error

$ browserify build/demo.js -o public/js/demo-bundle.js && browserify build/idGraph.js -o public/js/idGraph-bundle.js && browserify build/timeGraph.js -o public/js/timeGraph-bundle.js && browserify build/arraysGraph.js -o public/js/arraysGraph-bundle.js

Error: Cannot find module './bufferbuilder' from '/home/schartz/code/conclave/node_modules/peerjs/dist'

at /home/schartz/code/conclave/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21 at load (/home/schartz/code/conclave/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43) at onex (/home/schartz/code/conclave/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31) at /home/schartz/code/conclave/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47 at FSReqWrap.oncomplete (fs.js:152:21) error Command failed with exit code 1.

Any help would be greatly appreciated.

Hey sorry for the late reply. Not totally sure what is wrong in your setup, but I've updated the package.json scripts. I've also added a Dockerfile and Makefile.

If you want to run Conclave locally, pull the latest git changes and run make run-local. Assuming you have docker, node, and npm, it should run in a docker container locally on your machine.

If you don't have docker, then just pull the new changes and run npm install and then npm run local.

I've also updated the readme with these instructions. Please let me know if you're still having trouble.