Solve a window download package error, "Can't find Python executable "python", you can set the PYTHON env variable."

Recently, I encountered a compatibility issue while writing a project and needed to debug it on Windows. Since I haven't used Windows for many years, I encountered some problems when installing the environment. Record it~

When using npm install on a window system, the error message is as follows

Insert image description here

1. Install cnpm and add a mirror

npm install -g cnpm --registry=https://registry.npm.taobao.org

2. Install using cnpm

cnpm install

3. Run

npm run serve

Guess you like

Origin blog.csdn.net/qq_37617413/article/details/123854123