【发布时间】:2020-01-16 01:01:27
【问题描述】:
gyp ERR! find Python checking Python explicitly set from command line or npm configuration
gyp ERR! find Python - "--python=" or "npm config get python" is "C:\Users\Kolmipyöräinen pyörä\.windows-build-tools\python27\python.exe"
gyp ERR! find Python - executable path is "C:\Users\Kolmipy�r�inen py�r�\.windows-build-tools\python27\python.exe"
gyp ERR! find Python - "C:\Users\Kolmipy�r�inen py�r�\.windows-build-tools\python27\python.exe" could not be run
当尝试npm install openvpn-bin 时,它获取了python 路径,但将Kolmipyöräinen pyörä 更改为Kolmipy�r�inen py�r� 并且无法执行。
【问题讨论】:
-
您是直接从命令行还是从批处理文件运行
npm命令?因为如果是在脚本文件中,问题很可能是脚本文件保存时使用了错误的编码。 -
编码如utf-8 utf-16。 latin-1等。
-
我尝试从 cmd 运行并形成 vsc,管理模式和普通 @grismar。我可以使用 utf-8 作为 --encoding:"utf-8" 样式吗?