Closed jeantristan closed 5 years ago
Hey @jeantristan! It seems that you are using Node v11. Unfortunately, osrm@5.19.0 requires Node v8. Could you please try this version?
Totally sorry. It's written at the beginning of your documentation. You were right.
If some mac user needs info about it: https://apple.stackexchange.com/questions/171530/how-do-i-downgrade-node-or-install-a-specific-previous-version-using-homebrew
But now I have another error:
> galton@5.19.0-beta.2 prepublish /Users/chanegue/Code/galton
> npm run snyk-protect
> galton@5.19.0-beta.2 snyk-protect /Users/chanegue/Code/galton
> snyk protect
An unknown error occurred. Please include the trace below when reporting to Snyk:
Error: 500
at request (/Users/chanegue/Code/galton/node_modules/snyk/src/lib/snyk-test/run-test.ts:150:21)
at /Users/chanegue/Code/galton/node_modules/snyk/src/lib/request/index.js:12:9
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! galton@5.19.0-beta.2 snyk-protect: `snyk protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the galton@5.19.0-beta.2 snyk-protect 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! /Users/chanegue/.npm/_logs/2019-05-17T16_35_35_880Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! galton@5.19.0-beta.2 prepublish: `npm run snyk-protect`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the galton@5.19.0-beta.2 prepublish 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! /Users/chanegue/.npm/_logs/2019-05-17T16_35_35_944Z-debug.log
And at the end of the debug file:
3056 verbose stack Error: galton@5.19.0-beta.2 prepublish: `npm run snyk-protect`
3056 verbose stack Exit status 1
3056 verbose stack at EventEmitter.<anonymous> (/usr/local/Cellar/node@8/8.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
3056 verbose stack at emitTwo (events.js:126:13)
3056 verbose stack at EventEmitter.emit (events.js:214:7)
3056 verbose stack at ChildProcess.<anonymous> (/usr/local/Cellar/node@8/8.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
3056 verbose stack at emitTwo (events.js:126:13)
3056 verbose stack at ChildProcess.emit (events.js:214:7)
3056 verbose stack at maybeClose (internal/child_process.js:915:16)
3056 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
3057 verbose pkgid galton@5.19.0-beta.2
3058 verbose cwd /Users/chanegue/Code/galton
3059 verbose Darwin 18.5.0
3060 verbose argv "/usr/local/Cellar/node@8/8.16.0/bin/node" "/usr/local/bin/npm" "install"
3061 verbose node v8.16.0
3062 verbose npm v6.4.1
3063 error code ELIFECYCLE
3064 error errno 1
3065 error galton@5.19.0-beta.2 prepublish: `npm run snyk-protect`
3065 error Exit status 1
3066 error Failed at the galton@5.19.0-beta.2 prepublish script.
3066 error This is probably not a problem with npm. There is likely additional logging output above.
3067 verbose exit [ 1, true ]
Any clue?
Got it working thanks to the following command before npm install:
npm run snyk-protect
Hello,
Trying to install galton using git clone then npm install failed on my macos.
npm version : 6.9.0
Do you have any idea of what's wrong ?