-
Notifications
You must be signed in to change notification settings - Fork 697
Description
nodegit fails to compile on Node 10.0.0 and NPM 5.6.0. Here's a way to reproduce the issue:
cd ~
mkdir test_repo
cd test_repo
npm init
npm i --save nodegit
Here are my logs:
https://gist.github.com/sadasant/4fce501d8cffda53bc8fb53f4950eaa3
Also happens with NPM 6.0.0:
https://gist.github.com/sadasant/cf598e5d232be909e426135a3de87847
May 1 update
Even though nodegit's issue is deeper that what I'm about to mention, the following issue is the first breaking point for building nodegit on Node 10:
There was a recent change on Node 10's Function's toString method. Here's an issue that I created: nodejs/node#20459
This change in Node 10 causes promisify-node to break, here's the relevant issue: nodegit/promisify-node#28
May 2 update
The exception happens when we try to run node node_modules/.bin/node-pre-gyp install --build-from-source
. The issue seems to be that libssh2 is expected to be built using openssl-0.9.8: https://github.com/libssh2/libssh2/search?utf8=%E2%9C%93&q=openssl-0.9.8&type= However, node 10 moved openssl forward to 1.1.0: https://github.com/nodejs/node/search?utf8=%E2%9C%93&q=OpenSSL+has+been+updated+to+1.1.0h.&type=
Here are my logs: https://gist.github.com/sadasant/031d3f8bf1c4e5d2ac83b3841b7807fc