mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
docs: add the way to configuring Python dependency for Windows PowerShell (#2996)
This commit is contained in:
parent
f90ce122fe
commit
9fd7936f0d
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue