Closed donmccurdy closed 6 years ago
I'm not able to run anything with this latest version. after installing via npm, i get errors when attempting to run msdf-bmfont -v i tried chmod with no success
msdf-bmfont -v module.js:672 return process.dlopen(module, path._makeLong(filename)); ^
Error: The module '/usr/local/lib/node_modules/msdf-bmfont-xml/node_modules/canvas-prebuilt/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 46. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
or npm install
).
at Object.Module._extensions..node (module.js:672:18)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.
@donmccurdy sorry, this is due to new version submitted to npm via windows... I'll fix that
@soccerob what version of node are you using? This error is related to canvas-prebuilt
module. Try a clean remove and reinstall msdf-bmfont-xml
might solve this.
Fixed via bca20ca24bfcf1e7d03ffd43550953dfbeecc6c6
Thanks @soimy! With that update I no longer have to compile from the fork, and see no artifacts. 🙂 But it does not seem like this issue is fixed — none of the binaries appear to be executable.
尴尬!Fixed via 5f8f2901bf521ca2c98343685a23fd690ebe26f1
Thanks for reporting this @donmccurdy
Haven't figure out a way to keep executable permission while running npm publish
via windows
Working perfectly now, thanks! 🎊
The binaries in the 2.3.2 release don't seem to be executable:
A manual
chmod
after installation fixes the issue. I don't see anything in the commit history to explain that. 😕I am using macOS here.