Skip to content

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

@tobiasnteireho

Description

@tobiasnteireho

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions