Open mvl22 opened 5 years ago
Hey @mvl22! What is your version of Node?
See above - either "nvm use 8.0" or "nvm use 10.0" in those examples. I'm not sure off-hand what I was using in the first example.
Just to confirm that things work fine on my set up if I downgrade to OSRM 5.17.2 (under Node 8) and use the Galton 5.17.2 release. I'll have another go shortly with a clean setup in case there was something odd, but it would be useful to know whether the latest release or the current HEAD of master is intended to be compatible with OSRM 5.19.0.
On an Ubuntu 20.04 LTS install, the only combination I can get this to install remains the following, not as root:
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
# Use nvm immediately
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Use Node.js v. 8 (i.e. v8.17.0)
nvm install 8
nvm use 8
# Install Galton
npm install galton@5.17.2
(Note that this gives you node v8.17.0, which seems to work, whereas 8.0.0 does not.)
NB: Doing the same but with node 10 rather than 8 in the above gives:
Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.17.2/Release/node-v64-linux-x64.tar.gz
and subsequent errors. (v64 in that URL presumably relates to the node module version.)
E.g. to install as a particular user, e.g. routing
, you would use the following as root:
su - routing -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash"
su - routing -c 'export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" && nvm install 8 && nvm use 8 && npm install galton@v5.17.2'
Is there any compatibility possible yet with OSRM 5.19.0? With various combinations I cannot get this to work:
Using the released version of Galton, an incompatibility error is noted:
Upgrading to
galton@5.19.0-beta.2
(withnvm use 8.0
) gives:Using
galton@5.19.0-beta.2
(withnvm use 10.0
instead) gives an install error: