Open JJK96 opened 5 months ago
Thank you so much for the fork with the changes @JJK96, I could finally run the code and do some tests. I guess you were already able to find a workaround, but if anyone still needs it, here it is.
The problem is that the z3javascript
package requires the most recent version of node-gyp
(like this, with an asterisk "node-gyp": "*"
). I just changed it to require the version 9.4.1
, as it seems like it's the last one that is still working. Just change the Analyser's postinstall script to this:
(cd node_modules/jalangi2/ && npm install)
(
git clone https://github.com/ExpoSEJS/z3javascript.git node_modules/z3javascript
&& cd node_modules/z3javascript
&& sed -i'' -e 's/"node-gyp": "\*"/"node-gyp": "9.4.1"/' package.json
&& npm install
)
i.e. just add the sed -i'' -e 's/"node-gyp": "\*"/"node-gyp": "9.4.1"/' package.json
command
I first tried building on MacOS and ran into this issue. To make it easier for you to reproduce the issue, I upgraded the Dockerfile to match the latest install instruction. You can find the changes in my fork.
The build error is as follows: