- 波ダッシュ:「〜」:〜
- 全角チルダ:「~」:~
VirtualBox + Vagrant で開発環境を使っていて、 VirtualBox を更新したりすると GuestAdditions のインストールでこけることがしばしばある。
vagrant-vbguest plugin を入れていても安心できない。
強制的に VBoxLinuxAdditions を実行したいとき、以下の手順でうまくいった。
vagrant vbguest --do install --no-cleanup
vagrant ssh
yes | sudo /mnt/VBoxLinuxAdditions.run
# ブランチ名 'issue/1' や 'topic_issue1' を Issue 番号を残し、'ref #1' 形式に変換
$ git branch | grep '*' | awk '{print $2}' | sed -e 's/^\([a-z_\/]*\)/refs #/g'
VirtualBox と Vagrant のインストール(アップグレード)時に起こった。
.pkg インストーラーを CLI でインストールすることができるらしい。
VirtualBox をインストールした。
$ sudo installer -package /Volumes/VirtualBox/VirtualBox.pkg -target /
Password:
installer: Package name is Oracle VM VirtualBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
npm install -g browser-sync modernizr gulp-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# load nvm | |
source ~/.nvm/nvm.sh | |
# list | |
nvm ls-remote | |
# input version | |
echo "インストールする node のバージョンを入力してください : " |
今日学んだこと。
npm パッケージの更新確認とを更新のしかた。
npm install --save-dev
や npm install --save
でインストールしたパッケージは package.json に記述される。
"devDependencies": {
"browser-sync": "^2.18.6",
"gulp": "^3.9.1",
Use the Bitbucket Cloud REST APIs: https://confluence.atlassian.com/bitbucket/use-the-bitbucket-cloud-rest-apis-222724129.html
$ curl https://api.bitbucket.org/2.0/repositories/{accountname}
OAuth on Bitbucket Cloud: https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html