backgammonjs icon indicating copy to clipboard operation
backgammonjs copied to clipboard

Docker build does not run

Open oysteijo opened this issue 5 years ago • 1 comments

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

> [email protected] start /usr/src/app
> npm run build:browser && npm run start:server


> [email protected] build:browser /usr/src/app
> cd app/browser && npm run build && cd ..


> [email protected] build /usr/src/app/app/browser
> npm run build:js


> [email protected] 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! [email protected] 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 [email protected] 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! [email protected] build: `npm run build:js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! [email protected] build:browser: `cd app/browser && npm run build && cd ..`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! [email protected] start: `npm run build:browser && npm run start:server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.

oysteijo avatar Aug 21 '20 08:08 oysteijo

same here on ubuntu 18.04

thinkhead avatar Jan 02 '21 02:01 thinkhead