If you're running on Windows, try this step (worked on me in my Windows 11) :
- Make sure you have python version of >= 3.x
- Node version 18.16.1 (use NVM for easier to manage node version)
- Visual Studio Build Tools 2019 or newer with "Desktop development with C++" workload
- Install npm install -g node-gyp