i am getting an error in my npm when trying to install expo-cli globally, can anyone help me on how to fix this issues

when i try to install npm globally, using the command npm install -g expo-cli i am getting an error that says

npm install -g expo-cli
npm ERR! code ERR_OSSL_UNSUPPORTED
npm ERR! error:1E08010C:DECODER routines::unsupported

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersuserAppDataLocalnpm-cache_logs2022-04-20T21_10_42_635Z-debug-0.log

although i just updated my node version to version 17.9.0 and my npm version is 8.5.5

please any suggestion of what i can do to solve this problem