WorldBank-Transport / ram-backend

Calculate regional ETAs, at scale. Measure accessibility. Calculate impact of road changes.
MIT License
26 stars 11 forks source link

Install fails on `Building rra-api` #213

Open brunosan opened 6 years ago

brunosan commented 6 years ago

I'm following the steps on Offline usage.

It fails on

(p3) ➜  ram-backend git:(master) docker-compose up -d
Building rra-api
Step 1/5 : FROM ubuntu:16.04
 ---> f975c5035748
Step 2/5 : ADD . /dist
 ---> Using cache
 ---> cbd31f158f9d
Step 3/5 : WORKDIR /dist
 ---> Using cache
 ---> 4eb941abe35a
Step 4/5 : RUN bash install.sh
 ---> Using cache
 ---> 280d318c6542
Step 5/5 : RUN yarn install --unsafe-perm
 ---> Running in c140e487426c
yarn install v1.5.1
[1/5] Validating package.json...
error rural-road-accessibility--server@0.4.0: The engine "node" is incompatible with this module. Expected version "6.7.x".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided in "/dist/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR: Service 'rra-api' failed to build: The command '/bin/sh -c yarn install --unsafe-perm' returned a non-zero code: 1

I understand this a mismatch of the noce version inside the dockerized rra-api container.

(p3) ➜  ram-backend git:(master) node --version
v6.7.0
(p3) ➜  ram-backend git:(master) yarn --version
1.5.1