window上安装配置node.js
来源:互联网 发布:通信算法工程师面试 编辑:程序博客网 时间:2024/06/07 20:53
node.js安装包以及源代码下载地址:https://nodejs.org/en/download/,选择windows版本安装包
node.js历史版本下载地址:https://nodejs.org/dist/
下载好之后只双击安装,根据提示操作即可完成安装,环境变量在安装的时候已经自动配置好。
测试node.js是否安装成功:
新建一个test.js,写入如下内容:
var http=require("http");
http.createServer(function(req,res){
res.writeHead{200,{"Content-type":"text/html"});
res.write("<h1>test node.js</h1>");
res.write("<p>success</h1>");
}).listen(8080);
console.log("HTTP server is listening at port 8080");
进入cmd命令行,
输入node test.js运行你的代码
然后在浏览器中输入http://localhost:8080,如果看到success证明安装成功
阅读全文
0 0
- window上安装配置node.js
- 【配置教程】Nginx上安装Node.js
- window下安装node.js
- window 下安装node.js
- 安装配置node.js
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js安装配置
- Node.js 安装配置
- Node.js 安装配置
- Node.js 安装配置
- hdu 5776 抽屉定理
- httpcomponents-client-4.5.3 学习笔记(1) 1.1 发送请求
- Json 解析
- IO流
- 安卓工程依赖方式:Implementation vs API dependency
- window上安装配置node.js
- 欢迎使用CSDN-markdown编辑器
- String intern 方法解析
- jsp 萌新练习
- hadoop常用web功能
- Centos7搭建wordpress
- javascript 敏感词过滤题 Cross the greatwall,We can reach every corner of the world.
- ORALCE官网下载JDK历史版本
- PAT-A-1050. 螺旋矩阵(25)