quasoft / backgammonjs

`backgammonjs` is an extensible multiplayer backgammon game written in JavaScript.
MIT License
87 stars 51 forks source link

Docker build does not run #27

Open oysteijo opened 4 years ago

oysteijo commented 4 years ago

Hi!

I've just cloned this project and trying to build and run a Docker image container. Building works fine, however when running I get an error:

oystein@lt-955213:~/backgammonjs$ docker run backgammonjs

> backgammon.js@0.0.1 start /usr/src/app
> npm run build:browser && npm run start:server

> backgammon.js@0.0.1 build:browser /usr/src/app
> cd app/browser && npm run build && cd ..

> backgammon.js-client@0.0.1 build /usr/src/app/app/browser
> npm run build:js

> backgammon.js-client@0.0.1 build:js /usr/src/app/app/browser
> browserify ./js/main.js --require socket.io-client -o ./js/bundle.js

sh: browserify: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! backgammon.js-client@0.0.1 build:js: `browserify ./js/main.js --require socket.io-client -o ./js/bundle.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the backgammon.js-client@0.0.1 build:js script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-21T08_40_36_253Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! backgammon.js-client@0.0.1 build: `npm run build:js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the backgammon.js-client@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-21T08_40_36_276Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! backgammon.js@0.0.1 build:browser: `cd app/browser && npm run build && cd ..`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the backgammon.js@0.0.1 build:browser script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-21T08_40_36_300Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! backgammon.js@0.0.1 start: `npm run build:browser && npm run start:server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the backgammon.js@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-08-21T08_40_36_329Z-debug.log

I'm running on a Windows 10 WSL system, but I don't think that's the issue. Sounds to me like some browserify is missing.

thinkhead commented 3 years ago

same here on ubuntu 18.04