Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build does not run #27

Open
oysteijo opened this issue Aug 21, 2020 · 1 comment
Open

Docker build does not run #27

oysteijo opened this issue Aug 21, 2020 · 1 comment

Comments

@oysteijo
Copy link

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.

@thinkhead
Copy link

same here on ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants