'Nvm doesn't install node properly

It's been multiple days now that i'm trying to install nvm on windows and none of the solutions on internet helped me.

I'm using Win11 in Beta channel (was necessary months ago for wsl and I can't go back to stable channel) with the build 22621.1 The installation of nvm and node works fine until I do the command 'nvm use x.x.x', here's the result :

C:\Windows\System32>nvm use 10.9.0
exit status 1: Le chemin d'acc�s sp�cifi� est introuvable.

(The specified path was not found.)

I've tried to install nvm from cmd in admin, with compatibility for Win7, using a different location for nodejs, nothing works and the error is always the same. The symlink is correctly created and my PATH is updated too.

If I do the command npm or even C:\Users\jason\AppData\Roaming\nvm\v10.9.0\npm i got the same error and another that is appearing twice.

C:\Windows\System32>C:\Users\jason\AppData\Roaming\nvm\v10.9.0\npm
Le chemin d’accès spécifié est introuvable.
'"node"' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
'"node"' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

('"node"' is not recognized as an internal or external command, executable program, or batch file.)

I've reinstalled nvm almost 15 times in different ways, always deleting everything related with nvm/npm/node and using administrator cmd.

Here's the list of the files in "C:\Users\jason\AppData\Roaming\nvm\v10.9.0" :

C:\Users\jason>dir C:\Users\jason\AppData\Roaming\nvm\v10.9.0
 Le volume dans le lecteur C s’appelle Windows-SSD
 Le numéro de série du volume est 845D-1C10

 Répertoire de C:\Users\jason\AppData\Roaming\nvm\v10.9.0

20-05-22  11:32    <DIR>          .
20-05-22  11:32    <DIR>          ..
20-05-22  11:32        24.451.224 node64.exe
20-05-22  11:32    <DIR>          node_modules
20-05-22  11:32               833 npm
20-05-22  11:32               483 npm.cmd
20-05-22  11:32               887 npx
20-05-22  11:32               539 npx.cmd
               5 fichier(s)       24.453.966 octets
               3 Rép(s)  78.929.383.424 octets libres

I really don't know what to do here, I really don't want to reinstall Windows because I have many programs with specific configurations and that would take minimum 2 days to reinstall everything, reinstalling Windows is not really an option.

Tell me if you have something else to try Thank you in advance !



Solution 1:[1]

Depends on the ReleaseMode of the player. If set to ReleaseMode.DISPOSE, it will automatically dispose when finished playing.

If set to STOP, you are manually controlling it. So you must call dispose when no longer used. If you have a single instance of audioplayers that you share on the entire app, then you can keep using it. But if you are creating multiple, it's paramount to dispose them when you no longer need each instance (on STOP mode).

To know if a player has finished, you can listen to the stream onPlayerStateChanged.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Luan Nico