However, there are reports that Microsoft has contacted Node.js, and that there will be improvements soon.
So without installing Cygwin, can you build a node.js environment on Windows to test development? I made a simple test with Node.js + Express, which is basically feasible.
The steps are as follows:
1. Download Node.js official non-stable version of Windows executable program:
http://nodejs.org/#download
I used the 0.5.7 version in the experiment: Http://nodejs.org/dist/v0.5.7/node.exe
2. Create the C:\nodejs directory and save the Node.exe in this directory
3. Download Express. Because of dependencies, we also need to download: Connect, QS, mime and Jade (express default Template system. If you use another template system, you need to download the corresponding system.
Name Address Trial Version
---------------------------------------------------------------
Express:https://github.com/visionmedia/express 2.4.3
Connect:https://github.com/senchalabs/connect 1.7.1
Qs:https://github.com/visionmedia/node-querystring 0.3.1
Mime:https://github.com/bentomas/node-mime 1.2.4
Jade:https://github.com/visionmedia/jade 0.15.4
4. Create the C:\nodejs\node_modules directory, and create the [Module] directory in this directory separately. Then compress the files that were downloaded in the previous step and copy the related files to the [Module] directory.
Node_modules
|-Connect <= connect:lib/*
|-Express <= express:lib/*
|-Jade <= jade:lib/*
|-MIME <= mime:mime.js & types/*
|-QS <= qs:lib/*
10. Run and test:
C:\nodejs\node.exe Hello\app.js
Open in Browser: http://localhost:3000, view results.
This test is complete.
The test file is given below, and I tested the express session in the test file. You can open it in a browser: Http://localhost:3000/session to see the results.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.