On 03.02.2021 17:17, Lemke, Michael SF/HZA-ZIC2 wrote:
On Wednesday, February 3, 2021 4:28 PM Andrey Repin wrote:
Greetings, Lemke, Michael  SF/HZA-ZIC2!

I don't know anything about python but want to use cygwin's
python from nodejs npm with node-gyp. The node-gyp module is trying to
find the python executable path from sys.executable and fails.

If that's true, then it should be fixed upstream.

Good to know but I doubt that they will. For those who need this -
here is a workaround for node-gyp v5.1.0 I just found:

cygwin> mkdir /c/Python37
cygwin> ln `which python3.6m` /c/Python37/python.exe

I aware of the version clash here but c:\Python37 is one of a
few explicit locations this node-gyp looks at. Doesn't seem
confused if the versions don't match. The file you link to
must be the actual Cygwin executable not any of the python
links in /bin.


Hi Michael,

do you know that python3.7 is also available in Cygwin ?
All versions availabe are:

$ ls  /usr/bin/python3* | grep -v config
/usr/bin/python3
/usr/bin/python3.6
/usr/bin/python3.6m.exe
/usr/bin/python3.7
/usr/bin/python3.7m.exe
/usr/bin/python3.8.exe


Where have you installed the node-gyp v5.1.0 and how ?

Regards
Marco

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to