All,

Am trying to get Node.js to work on Vista machine.

I installed Cygwin (as per the Github instructions) which appears to have been installed correctly. However, none of the commands are executing.

Are there any tutorials for the stages after the Cygwin installation?

PROBLEM: When any command is executed, I get 'Bash: command not found' error. Not even command like 'c:\cygwin\bin' is executing. When I type 'user' in cygwin command prompt, I get 'ntvdm has encountered an system error. Parameter incorrect'.

I thought the above error may be due to the firewall, disabling the firewall did not have any effect, running the program with admin rights also did not change the results...

Am confused and would love to get some guidance on what steps to go with next on getting Node.js up and running on a windows Vista machine.

Many thanks,

UPDATE1:

We managed to make a bit more progress. It appears that we had not installed all the relevant files related to Cygwin. Upon re-download and reinstalled, it ran well, however, we have driven into another error. Error we get:


Node.js - tutorials on getting it to work with Cygwin on a Vista machine

How to compile/install node.js (could not configure a cxx compiler!) (Ubuntu).

We followed the instructions as per the above thread (3rd post from top for Windows machines), however, we are still stuck at the same error.

Any guidance please?

Problem courtesy of: Kayote

Solution

People seem to run into problems with Cygwin because they think that they are using a Windows machine.

If you install Cygwin, and open a bash shell prompt using the Cygwin icon, you are now in a UNIX environment and everything works the same as it would on UNIX. That includes building node.js .

I think you added some info to the question and I can see your problem. Yes, normally on Cygwin it has been possible to build node.js just as you would on any UNIX system, but that is no longer possible on Windows 7. Before running ./configure you have to:

Close all cygwin apps. Double-click on C:\Cygwin\bin\ash.exe Run ./rebaseall and when it completes, run ./perlrebase . exit from the ash shell window.

At this point Cygwin will be back to normal and you can ./configure and make install.

Solution courtesy of: Michael Dillon

Discussion

At first, i tried it your way too, using Cygwin. After smashing my head for the 10th time against a wall i just stopped trying and found a much cleaner solution.

I'm using VirtualBox running a Debain guest system to locally develop on my Windows 7 machine. Using VirtualBox, you can easily set up shared folders or port forwarding for node apps between your Windows machine and your Debian guest system.

Since you are using a plain linux-system, all the compiling-pain is blown away.

If you plan to run node.js in production on a windows system: don't. I hardly believe node.js will be ever stable enough on windows-based systems using MINGW/Cygwin...

Discussion courtesy of: schaermu

Have you tried just using the Windows self contained binaries? http://node-js.prcn.co.cc/ This way you actually don't need to bother with Cygwin.

Discussion courtesy of: Jeremy Battle

This recipe can be found in it's original form on Stack Over Flow .

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

主题: Node.jsWindowsGitDebianLinuxUbuntuWindows 7
tags: Cygwin,js,Windows,using,node,machine
分页:12
转载请注明
本文标题:Node.js - tutorials on getting it to work with Cygwin on a Vista machine
本站链接:http://www.codesec.net/view/561338.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(51)