Compiling node.js on Cygwin

I am trying to create node.js on my Windows XP (yes, it hurts, thanks.) Using Cygwin, following Ryans instructions here .

Sadly calling "./configure" from the node source directory to do this:

$ ./configure
/home/LWE/sources/node.js/wscript: error: Traceback (most recent call last):
  File "/home/LWE/sources/node.js/tools/wafadmin/Utils.py", line 274, in load_module
    exec(compile(code, file_path, 'exec'), module.__dict__)
  File "/home/LWE/sources/node.js/wscript", line 12, in <module>
    import js2c
  File "/home/LWE/sources/node.js/tools/js2c.py", line 35, in <module>
    import jsmin
  File "/home/LWE/sources/node.js/tools/jsmin.py", line 1
    ../deps/v8/tools/jsmin.py
    ^
SyntaxError: invalid syntax

I'm absolutely not in Python, so it's hard for me to figure this out. Am I missing some kind of addiction or what?

I would expect that there is a small simple configuration switch that I have to turn to make this work. I just don't know where / what / why / ...

I compiled node.js on my Mac before from the same sources and worked like a charm. And I also can not imagine that the script assembly from the node repository itself is broken.

PS: This is a completely new and modern installation of Cygwin with Python 2.6.5.

+3
3

nodejs cygwin - Python. cygwin DLL, . , . , .

, http://avalanche123.tumblr.com/post/855374337/nodejs-mongodb-tinyurl

, cygwin, ( ), C:\cygwin\bin\ash.exe, "/usr/bin/rebaseall"

rebaseall, , cygwin, . /configure script nodejs "make" "make install" nodejs.

+3

, , : jsmin.py . Git msysGit Cygwin, . Git, Cygwin, , barfs. jsmin.py , , , . :

# from the node.js source directory, run:
% cd tools
% ln -fs `cat jsmin.py`

, . ./configure, .

Github.

+1

I had no problems using the current Ryan instructions - until I tried installing NPM and then I did not get the exit. If you use cygwin and install node.js, be sure to use the "works" tag when you are a git file and not a specific version number. Otherwise, there is no output / idle npm.

Now, to understand how to properly configure mongo ...

0
source

Source: https://habr.com/ru/post/1757106/


All Articles