When executing the npm i command in the ionic project, an Error: not found: python2 error occurs, and the error is as shown in the figure below
solution
1. Download python https://www.python.org/download/releases/2.7/
2. Install python
3. Set python environment variables
1) Right-click on the computer - Properties - Advanced System Settings - Advanced - Environment Variables
2) System variables—Add environment variable C:\Python27 (python installation directory) to Path
4. Then execute npm rebuild node-sass to refactor.
5. Then execute npm i.