Categories
JavaScript Answers

How to fix npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.” error with JavaScript?

Spread the love

To fix npm – "Can’t find Python executable "python", you can set the PYTHON env variable." error with JavaScript, we install the window-build-tools package.

To fix this, we run

npm install -g windows-build-tools

to install the window-build-tools package globally which includes Python.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *