摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html 创建模块 创建模块,package.json 文件是必不可少的。我们可以使用 NPM 生成 package.json 文件,生成的文件包含了基本的结果。 以上的信息,你需要根据你自己的情况输入。 阅读全文
posted @ 2017-12-15 18:34
Sharpest
阅读(131)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html 卸载模块 我们可以使用以下命令来卸载 Node.js 模块。 卸载后,你可以到 /node_modules/ 目录下查看包是否还存在,或者使用以下命令查看: 更新模块 我们可以使用以下命令更新模 阅读全文
posted @ 2017-12-15 18:16
Sharpest
阅读(126)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html 你可以使用以下命令来查看所有全局安装的模块: 如果要查看某个模块的版本号,可以使用命令如下: 阅读全文
posted @ 2017-12-15 18:13
Sharpest
阅读(603)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html package.json 位于模块的目录下,用于定义包的属性。接下来让我们来看下 express 包的 package.json 文件,位于 node_modules/expr 阅读全文
posted @ 2017-12-15 18:13
Sharpest
阅读(120)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html npm 安装 Node.js 模块语法格式如下: 以下实例,我们使用 npm 命令安装常用的 Node.js web框架模块 express: 安装好之后,express 包就放在了工程目录下的 阅读全文
posted @ 2017-12-15 18:11
Sharpest
阅读(979)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html NPM是随同NodeJS一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,常见的使用场景有以下几种: 允许用户从NPM服务器下载别人编写的第三方包到本地使用。 允许用户从NPM服务器 阅读全文
posted @ 2017-12-15 18:10
Sharpest
阅读(216)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html 如果我们使用PHP来编写后端的代码时,需要Apache 或者 Nginx 的HTTP 服务器,并配上 mod_php5 模块和php-cgi。 从这个角度看,整个"接收 HTTP 请求并提供 W 阅读全文
posted @ 2017-12-15 18:04
Sharpest
阅读(157)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html 32 位安装包下载地址 : http://nodejs.org/dist/v0.10.26/node.exe 64 位安装包下载地址 : http://nodejs.org/dist/v0.10 阅读全文
posted @ 2017-12-15 17:49
Sharpest
阅读(577)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html Node.js安装包及源码下载地址为:https://nodejs.org/en/download/。 你可以根据不同平台系统选择你需要的Node.js安装包。 Node.js 历史版本下载地址 阅读全文
posted @ 2017-12-15 17:47
Sharpest
阅读(195)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-tutorial.html node.exe为终端 打开终端,键入node进入命令交互模式,可以输入一条代码语句后立即执行并显示结果,例如: 阅读全文
posted @ 2017-12-15 17:45
Sharpest
阅读(148)
评论(0)
推荐(0)
浙公网安备 33010602011771号