samuelthomas2774 / nxapi

Nintendo Switch Online/Parental Controls app APIs. Show your Nintendo Switch presence in Discord, get friend notifications on desktop, and download and access SplatNet 2, NookLink, SplatNet 3 and Parental Controls data. Mirror of https://gitlab.fancy.org.uk/samuel/nxapi.git.
GNU Affero General Public License v3.0
412 stars 34 forks source link

Running in Windows Ubuntu WSL #68

Closed NeoMatrixJR closed 1 year ago

NeoMatrixJR commented 1 year ago

Trying to run in Windows 11 Ubuntu Jammy WSL. This is what I get: $ nxapi nso auth (node:10230) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '.' at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18) (node:10230) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:10230) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

NeoMatrixJR commented 1 year ago

Found own fix. Node was out of date (apt version was 12.x) Fix to update node in WSL is available here: https://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version