DiscordBot icon indicating copy to clipboard operation
DiscordBot copied to clipboard

"Unfortunately libxml is notoriously annoying to setup."

Open NekoTony opened this issue 10 years ago • 4 comments

How do i set it up? i got python and visual studios but i keep on getting this

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.5.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the libxmljs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs libxmljs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls libxmljs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\gem\gem\npm-debug.log

NekoTony avatar Sep 11 '16 00:09 NekoTony

I second this, My bot has been running fine for months and all of a sudden I am getting this error.

I've tried updating libxmljs -- and that works fine, but it does not fix the issues.

The bot runs and comes online but does not take any commands, not sure what to do. I've tried deleting my node modules and reinstalling them, but that did not work either.

` gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Linux 4.5.7-std-3 gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /root/Discord/node_modules/wolfram/node_modules/libxmljs gyp ERR! node -v v6.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok [email protected] /root/Discord └── (empty)

npm WARN [email protected] license should be a valid SPDX license expression npm ERR! Linux 4.5.7-std-3 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "update" npm ERR! node v6.5.0 npm ERR! npm v3.10.7 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the libxmljs package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs libxmljs npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls libxmljs npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/Discord/npm-debug.log npm ERR! code 1 `

nickfoon avatar Sep 11 '16 09:09 nickfoon

Yea

NekoTony avatar Sep 11 '16 15:09 NekoTony

Sorry about this. The Wolfram Alpha library we were using seems to be abandoned, and it was depending on obsolete versions of other libs, including libxml. I just finished porting to the latest Discord.js version, and at the same time I rewrote the wolfram plugin to use a different api that doesn't depend on libxmljs. It should make this problem go away. See #82

Einarin avatar Sep 20 '16 00:09 Einarin

Feel free to comment more on this if you see problems, closing because it should be fixed now.

Einarin avatar Sep 20 '16 00:09 Einarin