Project-OSRM / osrm-frontend

Modular rewrite of the OSRM frontend using LRM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image and self-build docker image fails on startup

lukey78 opened this issue · comments

I tried with the image hosted on Dockerhub and just tried to build my own image locally.
Both give:

npm ERR! Please include the following file with any support request:
npm ERR!     /src/npm-debug.log

npm ERR! Linux 5.3.0-26-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! osrm-frontend@0.4.0 build: `npm run replace && npm run compile && cp node_modules/leaflet/dist/leaflet.css css/leaflet.css`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the osrm-frontend@0.4.0 build script 'npm run replace && npm run compile && cp node_modules/leaflet/dist/leaflet.css css/leaflet.css'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the osrm-frontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run replace && npm run compile && cp node_modules/leaflet/dist/leaflet.css css/leaflet.css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs osrm-frontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls osrm-frontend
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /src/npm-debug.log

npm ERR! Linux 5.3.0-26-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! osrm-frontend@0.4.0 start: `npm run build && npm run start-index`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the osrm-frontend@0.4.0 start script 'npm run build && npm run start-index'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the osrm-frontend package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build && npm run start-index
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs osrm-frontend
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls osrm-frontend
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /src/npm-debug.log

My fault, sorry.
Started it with a wrong environemnt variable via docker-compose.

Image works!