insidesherpa / JPMC-tech-task-2

29 stars 201 forks source link

Error can't find python executable #338

Open XcelCh opened 2 years ago

XcelCh commented 2 years ago

Screenshot (613)

I already set the correct path but the npm still cannot find the python executable. before having that problem I encounter another error, pretty similar to the local setup: troubleshooting (Windows) case A slide. after I followed the instructions it led to my current problem.

I'm using windows 10 and python 3.9.7

ret2cky commented 2 years ago

I know this is a late reply, but for anybody else having this issue, I worked through it by opening up a PowerShell instance under admin privileges and ran the command npm install -g windows-build-tools. After it finished installing, I ran npm install again with Git Bash, then npm audit fix to some of the vulnerabilities that I was warned about, and now my developmental server is up and running! image

Also, I didn't have to do this, but another tip I found online that looked promising, is reconfiguring the npm path to python using npm config set python C:\Your\Path\Here\python3.exe. If you installed Python3 via Windows, it's located at _/c/Users//AppData/Local/Microsoft/WindowsApps/python3_. Hope this helps!

OS: Windows 11 (Should still work under Win10) Python Version: 3.9.7