Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add better compatibility to find libxml2js and for M1 CPU #17

Open
Raffaello opened this issue Aug 3, 2022 · 0 comments
Open

add better compatibility to find libxml2js and for M1 CPU #17

Raffaello opened this issue Aug 3, 2022 · 0 comments

Comments

@Raffaello
Copy link
Collaborator

Raffaello commented Aug 3, 2022

Hi,

using libxml2-xsd on M1 chip is returning error:

clang: error: no such file or directory: '[...]/node_modules/libxmljs2/build/Release/xmljs.node'
npm ERR! make: *** [Release/node-libxml-xsd.node] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd [...]/node_modules/libxmljs2-xsd
npm ERR! gyp ERR! node -v v16.16.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

This issue is resolved removing libxmljs2-xsd from the package.json file and install its own dependency libxmljs2 after doing the install,

restore the package.json and re-adding the libxmljs2-xsd is successful.

could you please be investigate on an M1 chip and fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant