docs: add the way to configuring Python dependency for Windows PowerShell (#2996)

This commit is contained in:
SmallY 2024-04-03 17:29:34 +08:00 committed by GitHub
parent f90ce122fe
commit 9fd7936f0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,8 @@ export npm_config_python=/path/to/executable/python
    Or on Windows:
```console
py --list-paths # To see the installed Python versions
set npm_config_python=C:\path\to\python.exe
set npm_config_python=C:\path\to\python.exe # CMD
$Env:npm_config_python="C:\path\to\python.exe" # PowerShell
```
3. If the `PYTHON` environment variable is set to the path of a Python executable,