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.
npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated npmlog@6.0.2: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated gauge@4.0.4: This package is no longer supported.
npm error code 1
npm error path /Users/<NAME>/node_modules/sfml.js
npm error command failed
npm error command sh -c node tools/lib_downloader.js && node-gyp rebuild
npm error /Users/<NAME>/node_modules/sfml.js/tools/lib_downloader.js:19
npm error throw new Error('Unsupported architecture: ' + process.arch);
npm error ^
npm error
npm error Error: Unsupported architecture: arm64
npm error at Object.<anonymous> (/Users/<NAME>/node_modules/sfml.js/tools/lib_downloader.js:19:13)
npm error at Module._compile (node:internal/modules/cjs/loader:1546:14)
npm error at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
npm error at Module.load (node:internal/modules/cjs/loader:1317:32)
npm error at Module._load (node:internal/modules/cjs/loader:1127:12)
npm error at TracingChannel.traceSync (node:diagnostics_channel:315:14)
npm error at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
npm error at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)
npm error at node:internal/main/run_main_module:30:49
npm error
npm error Node.js v22.9.0
npm error A complete log of this run can be found in: /Users/<NAME>/.npm/_logs/2024-10-16T13_23_34_053Z-debug-0.log
I am using a MacBook Pro with an Apple M1 chip.
Any help / comments would be appreciated. Thanks!