CCALI / a2jdat

This repo hosts the distributable production version of the A2J Document Assembly Tool (DAT). The document assembly tool is an optional piece of software used for producing pdf documents at the end of A2J Author Guided Interviews.
https://www.a2jauthor.org
Other
3 stars 1 forks source link

DAT fails to build on fresh ubuntu 24 on azure #147

Open tobiasnteireho opened 3 months ago

tobiasnteireho commented 3 months ago

Attempting to run npm run deploy yields following error

npm ERR! code 1
npm ERR! path /home/a2j/a2jdat/node_modules/muhammara
npm ERR! command failed
npm ERR! command sh -c -- node-pre-gyp install --fallback-to-build ${EXTRA_NODE_PRE_GYP_FLAGS:-""}
npm ERR! make: Entering directory '/home/a2j/a2jdat/node_modules/muhammara/build'
npm ERR!   CXX(target) Release/obj.target/pdfwriter/src/deps/PDFWriter/AbstractContentContext.o
npm ERR! make: Leaving directory '/home/a2j/a2jdat/node_modules/muhammara/build'
npm ERR! Failed to execute '/home/a2j/.nvm/versions/node/v16.20.2/bin/node /home/a2j/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/@npmcli/run-script/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/a2j/a2jdat/node_modules/muhammara/binding/muhammara.node --module_name=muhammara --module_path=/home/a2j/a2jdat/node_modules/muhammara/binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.17.0
npm ERR! node-pre-gyp info using node@16.20.2 | linux | x64
npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
npm ERR! node-pre-gyp info check checked for "/home/a2j/a2jdat/node_modules/muhammara/binding/muhammara.node" (not found)

This is unresolvable with previous workarounds such as deleting package-lock.json re-cloning repo or manually installing muhammara. Same repo builds in other environments