1.window environment
Follow the official website https://panjiachen.github.io/vue-element-admin-site/zh/guide/
Download the code, note that there are various strange problems when installing the installation package downloaded directly by dowload before git clone .
2. One-click installation command (including Python): npm install --global --production windows-build-tools, (you can also download and install it on the official website)
node-gyp installation command: npm install -g node-gyp
node-gyp list
3. Configure Python environment variables: https://blog.csdn.net/qq_31672775/article/details/78164794
4. Installation error: UnicodeEncodeError: 'ascii' codec can't encode characters in position XX solution
The solution is as follows:
** Create a file sitecustomize.py in the Python directory Python27 \ Lib \ site-packages
:
import sys
sys.setdefaultencoding('UTF-8')
Then it's ok
Reference: https://www.cnblogs.com/wangyuxue/p/11226998.html