10 2016 档案

摘要:在启动一个本地静态服务的时候报了这个错误?如何解决?events.js:85 throw er; // Unhandled 'error' event ^Error: listen EADDRINUSE at exports._errno... 阅读全文
posted @ 2016-10-31 22:43 李一娜 阅读(187) 评论(0) 推荐(0)
摘要:1、在需要创建 .gitignore 文件的文件夹, 右键选择Git Bash 进入命令行,进入项目所在目录。2、输入 touch .gitignore ,生成“.gitignore”文件。3、在”.gitignore” 文件里输入你要忽略的文件夹及其文件就可以了。(注意格式)我... 阅读全文
posted @ 2016-10-28 11:01 李一娜 阅读(134) 评论(0) 推荐(0)
摘要:工具/原料 • Windows(Mac也是差不多,可参照) • Git • Node.js安装Hexo1、利用 npm 命令即可安装。在任意位置点击鼠标右键,选择Git Bash。2、输入命令: npm install -g hexo 注意:-g是指全局安装he... 阅读全文
posted @ 2016-10-27 09:42 李一娜 阅读(260) 评论(0) 推荐(0)
摘要:在.git同级目录下新建.gitignore文件,将要忽略的文件写进去即可。忽略前后: 阅读全文
posted @ 2016-10-27 01:31 李一娜 阅读(447) 评论(0) 推荐(0)
摘要:ssh -T git@github.com输出 You’ve successfully authenticated 表示添加key 成功, 阅读全文
posted @ 2016-10-27 00:27 李一娜 阅读(495) 评论(0) 推荐(0)
摘要:$ hexo d ERROR Deployer not found: git npm install hexo-deployer-git –save 即可。 阅读全文
posted @ 2016-10-27 00:22 李一娜 阅读(628) 评论(0) 推荐(0)
摘要:osx系统git下载地址: https://sourceforge.net/projects/git-osx-installer/files/?source=navbar 阅读全文
posted @ 2016-10-27 00:19 李一娜 阅读(160) 评论(0) 推荐(0)
摘要:ssh优点:http部署时每次要输入github用户名密码,ssh不需要。 首先走完http版:http://blog.csdn.net/weixin_36401046/article/details/52942683设置SSH keys1、在Git Bash输入以下指令(任意位置... 阅读全文
posted @ 2016-10-26 18:41 李一娜 阅读(299) 评论(0) 推荐(0)
摘要:bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for 'https://gith... 阅读全文
posted @ 2016-10-26 17:55 李一娜 阅读(853) 评论(0) 推荐(0)
摘要:INFO Deploying: gitINFO Clearing .deploy_git folder...INFO Copying files from public folder...warning: LF will be replaced by CRLF in 2016... 阅读全文
posted @ 2016-10-26 17:39 李一娜 阅读(464) 评论(0) 推荐(0)
摘要:曾经执行过npm config set prefix 命令, 导致npm的config乱掉了, 找到这个文件.npmrc, 然后删掉就可以了 。 我的.npmrc位置在C:\Users\Administrator下。 阅读全文
posted @ 2016-10-26 16:53 李一娜 阅读(474) 评论(0) 推荐(0)
摘要:git init # 初始化本地git仓库(创建新仓库) git config –global user.name “xxx” # 配置用户... 阅读全文
posted @ 2016-10-26 11:32 李一娜 阅读(122) 评论(0) 推荐(0)
摘要:打开终端,输入: defaults write com.apple.finder AppleShowAllFiles -bool true 此命令显示隐藏文件 defaults write com.apple.finder AppleShowAllFiles -bool fal... 阅读全文
posted @ 2016-10-24 18:30 李一娜 阅读(128) 评论(0) 推荐(0)
摘要:快速安装 最简单的方式是通过Sublime Text 3的console命令界面进行安装 使用 ctrl+~快捷键 或者 菜单项View > Show Console 来调出命令界面 然后复制粘贴下面的Python代码到命令输入框中: import urllib.req... 阅读全文
posted @ 2016-10-21 09:44 李一娜 阅读(220) 评论(0) 推荐(0)
摘要:需要插件 sublime text3:View in Browser;LiveReloadchrome:liveReload配置方法一:sublime text3sublime 3下载地址:http://download.csdn.net/download/reggergdsg/9... 阅读全文
posted @ 2016-10-20 22:19 李一娜 阅读(205) 评论(0) 推荐(0)
摘要:1.下载安装文件:下载nodejs,官网:http://nodejs.org/download/,我这里下载的是node-v0.10.28-x86.msi,如下图:2.安装nodejs:下载完成之后,双击”node-v0.10.28-x86.msi”,安装nodejs。3.环境变量... 阅读全文
posted @ 2016-10-20 10:44 李一娜 阅读(139) 评论(0) 推荐(0)
摘要:Express 应用生成器通过应用生成器工具 express 可以快速创建一个应用的骨架。通过如下命令安装:$ npm install express-generator -g-h 选项可以列出所有可用的命令行选项:$ express -h Usage: express [opt... 阅读全文
posted @ 2016-10-19 16:38 李一娜 阅读(232) 评论(0) 推荐(0)
摘要:1、安装express-generator:参见http://blog.csdn.net/weixin_36401046/article/details/52860827 2、在D盘下新建目录grunt-liveredload-demo,打开命令行,进入grunt-liveredl... 阅读全文
posted @ 2016-10-19 16:23 李一娜 阅读(226) 评论(0) 推荐(0)
摘要:对于express 新手来说,我推荐一个 express脚手架工具。 npm install -g express-generator通过上面命令安装express脚手架工具,接下来 exress -e myapp生成一个express的框架(参数e代表使用ejs模板,默认是j... 阅读全文
posted @ 2016-10-19 16:18 李一娜 阅读(387) 评论(0) 推荐(0)
摘要:安装包下载地址:mongodb-win32-x86_64-2.6.61.解压到当前文件夹,进到目录mongodb-win32-x86_64-2.6.6,在这里新建data文件夹, 2.进到data目录下,在这里新建db文件夹,3.命令行进到bin目录下,输入 mongod –db... 阅读全文
posted @ 2016-10-19 14:06 李一娜 阅读(175) 评论(0) 推荐(0)
摘要:Error: Most middleware (like session) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/... 阅读全文
posted @ 2016-10-16 18:18 李一娜 阅读(586) 评论(0) 推荐(0)
摘要:用Node.js的时候使用connect-mongo这个模块的时候出现SyntaxError: Use of const in strict mode这个错误,看了一下其中src/index.js的代码,使用了const、let、"use strict"这些高大上的东西,我的解决方法是: ... 阅读全文
posted @ 2016-10-16 17:59 李一娜 阅读(400) 评论(0) 推荐(0)
摘要:装bootstrap的时候,先用sudo指令装了bower,但是一打 bower isntall bootstrap 就报错: Error: EACCES, permission denied '/Users/narumi/.config/configstore/bower-github.... 阅读全文
posted @ 2016-10-14 23:11 李一娜 阅读(320) 评论(0) 推荐(0)
摘要:在使用 bower 安装依赖包时有时会出现“permission denied”权限不足的问题,这时我们会想到用sudo,以root权限安装,但sudo后问题来了,又出现了”Cannot be run with sudo”问题。报错信息如下: Since bower is a user co... 阅读全文
posted @ 2016-10-14 23:09 李一娜 阅读(316) 评论(0) 推荐(0)
摘要:使用教程 ●windows用户: 1,下载windows版本的客户端,解压到你喜欢的目录 2,在命令行下进入到path/to/windows_386/下 3,执行 ngrok -config=ngrok.cfg -subdomain xxx 80 //(xxx 是你自定义的域名前缀)... 阅读全文
posted @ 2016-10-14 22:36 李一娜 阅读(43) 评论(0) 推荐(0)
摘要:1.windows上安装NodeJS 2.新建项目目录,如nodejs_wechat_bot,进入目录后安装express和weixin-api模块,具体方法是: npm install express npm install weixin-api 3.新建文件index.js,写入... 阅读全文
posted @ 2016-10-14 21:00 李一娜 阅读(485) 评论(0) 推荐(0)