You need to install python when npm i, a perfect solution

I recently cloned a Vue background template from GitHub. I wrote npm install directly in the project README, and then npm run dev can be started, but I reported an error after npm install, probably the error message is that the python2.7 environment is not installed

Can't find Python executable "python", you can set the PYTHON env variable

 At this point, you only need to execute this command and it will install the python environment for you

npm install --global --production windows-build-tools
Since the project I cloned uses scss (sass), I will execute another sentence to install sass

npm install node-sass --save-dev and
finally npm run dev can run 
 

Guess you like

Origin blog.csdn.net/qq_36090127/article/details/106751524