Error: TypeError: ‘process.env’ only accepts a configurable whileinstall windows-build-tools

I had the exact same problem.
First I tried to do npm install --global --production [email protected] but didn’t work then npm config set msvs_version 2022 but still didn’t work.

Finally I tried to download node version 17.9.1 and retried the command and it worked!!

So here are the steps:

Step 1: uninstall Node version 18.12 and install version 17.9.1

Step 2: Search %temp% under window search bar (Copy %temp% then press windows button + Ctrl V)
https://i.stack.imgur.com/jGaSg.png

Step 3: Create ‘dd_client_.log.txt’ and enter ‘Closing installer. Return code: 3010.’
https://i.stack.imgur.com/03Mju.png

after that you should be able to finish the whole process with npm install --global windows-build-tools

big thanks to seantsang

Between I have no Idea if the technique of seantsang work directly when installing windows-build-tools with node.js version 18.12 .
If what I said didn’t help, maybe try this

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)