nodejs的官网现在已经不长老师写的教程的这个样子了
手打代码贴一个:
var http = require("http");
var server = http.createServer(function(req, res){
res.writeHead(200, {"Content-Type": "text/plain"});
res.end("Hello World\n");
});
server.listen(1377,"127.0.0.1");
console.log("Server running at http://127.0.0.1:1377/")
手打代码贴一个:
var http = require("http");
var server = http.createServer(function(req, res){
res.writeHead(200, {"Content-Type": "text/plain"});
res.end("Hello World\n");
});
server.listen(1377,"127.0.0.1");
console.log("Server running at http://127.0.0.1:1377/")
2017-02-09
xcode-select -p 检查是否安装xcode
xcode-select -install 安装xcode
HomeBrew 依赖ruby进行安装
brew install node 使用HomeBrew安装nodejs
npm intall -g n
感觉mac的安装可以勉强一试,前面的linux的太难了。
xcode-select -install 安装xcode
HomeBrew 依赖ruby进行安装
brew install node 使用HomeBrew安装nodejs
npm intall -g n
感觉mac的安装可以勉强一试,前面的linux的太难了。
2017-02-09
我就是来涨涨见识的,几乎不用Linux系统,当年学的命令也忘记的差不多了,原谅我没听懂。
github下载的东西需要编译这点,对我这种看都看不懂的新手很不友好,还是windows理解用户的愚钝。
github下载的东西需要编译这点,对我这种看都看不懂的新手很不友好,还是windows理解用户的愚钝。
2017-02-09
下载什么的,还是找个中文的网站,下个安装包就好。
对于小白,去英文官网真的找不到下载的地方,尤其是对计算机英语不敏感的小白。
当然,跟着各位大神的教程走,时间久了,应该也能认得一二。
别问我怎么知道的。
对于小白,去英文官网真的找不到下载的地方,尤其是对计算机英语不敏感的小白。
当然,跟着各位大神的教程走,时间久了,应该也能认得一二。
别问我怎么知道的。
2017-02-09