摘要: 1、创建相应项目文件(或进入该项目文件根目录) 2、安装模块 npm install <Module> 3、使用require()方法 require("moduleName"); 4、测试如下: a、创建模块ModuleB,生成.tgz文件(npm pack) b、安装ModuleB模块(npm 阅读全文
posted @ 2016-06-12 22:33 DeadGhost 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1、添加用户到环境中: npm adduser 2、设置package.json文件: ... "repository":{ "type":"git", "url":"https://......." }, "keywords":[...], ... 3、发布该模块 npm publish 4、删除 阅读全文
posted @ 2016-06-12 22:15 DeadGhost 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 指令 说明 name 包的唯一名字 preferGlobal 表示该模块更倾向于在全局范围内安装 version 该模块的版本 author 项目的作者 description 模块的文字说明 contributors 模块的其他贡献者 bin 随项目安装的二进制文件 scripts 启动Node时 阅读全文
posted @ 2016-06-12 21:57 DeadGhost 阅读(1678) 评论(0) 推荐(0) 编辑
摘要: 以express模块为例: 命令 说明 示例 search 在存储中查找模块包 npm search express install 使用存贮库或本地位置上的一个package.json文件来安装模块 npm install/npm install express/npm install expre 阅读全文
posted @ 2016-06-12 21:05 DeadGhost 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-06-12 19:49 DeadGhost 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 一、设置wifi netsh wlan set hostednetwork mode=allow ssid=soul key=12345678 二、启动wifi netsh wlan start hostednetwork 三、查看已启用wifi热点 netsh wlan show hostedne 阅读全文
posted @ 2016-06-12 14:09 DeadGhost 阅读(218) 评论(0) 推荐(0) 编辑