Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sfml.js not being able to be installed via npm  (Read 1521 times)

0 Members and 1 Guest are viewing this topic.

BananaBro_Chaos

  • Newbie
  • *
  • Posts: 10
    • View Profile
sfml.js not being able to be installed via npm
« on: October 16, 2024, 03:29:59 pm »
I wanted to try and use node.js to write a server in conjunction with SFML, so I used the npm download link provided here: https://www.npmjs.com/package/sfml.js/v/0.0.1-preview.46. However, every time I ran it terminal, I always get a bunch of lines of error. Thus, I am wondering if I missed an update, or if sfml.js isn't compatible with my computer. I tried to do some researching regarding sfml.js, but there are no other links or information that I can find regarding it.

I put the terminal output below.

(click to show/hide)

I am using a MacBook Pro with an Apple M1 chip.

Any help / comments would be appreciated. Thanks!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: sfml.js not being able to be installed via npm
« Reply #1 on: October 19, 2024, 10:03:28 pm »
M1/ARM64 architecture support was only added in SFML 2.6

The sfml.js binding seems to use SFML 2.5.1, as such this won't be natively supported.
You could try to get in touch with the authors so see if it could be updated: https://sfml.js.org/

Alternatively, you could try and use the x64 version of node with Rosetta as translator.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything