ritarock’s blog

プログラミングとか映画とか趣味とか

node

hexoとやらを試してみた

hexo hexo.io githubのアカウントあれば誰でもブログを公開できる まずはリポジトリ作成 [username].github.io というリポジトリを作成 hexoの準備 公式通りに hexoをグローバルにインストール $ npm install hexo-cli -g 以下のコマンドでディレクトリを作…

JavaScriptの非同期処理(Promise)

Promise.resolve().then(function() { return new Promise(function(fulfilled, rejected) { //処理1 fulfilled(); }); }).then(function() { return new Promise(function(fulfilled, rejected) { //処理2 fulfilled(); }); }).then(function() { return ne…

vagrant の共有ディレクトリでnpm installがエラーを吐く時

sudo npm install --no-bin-links --no-bin-linksをつければうまくいく