制作・開発

vagrant upができなくなった時

しばらく自宅内のlinuxサーバで開発してたんですが、移動も多くなってきたのと外出先でもMacBookProで開発進めたいなと思い。
久しぶりにvagrant up をかけたら動かなかったので、直しました。
(Mojaveにアップデートしてからというもの、gulpが起動しなくなったりなってたのでMac放り投げたい)

vagrant upで 初期化エラー

Vagrant failed to initialize at a very early stage:

The plugins failed to initialize correctly. This may be due to manual
modifications made within the Vagrant home directory. Vagrant can
attempt to automatically correct this issue by running:

  vagrant plugin repair

If Vagrant was recently updated, this error may be due to incompatible
versions of dependencies. To fix this problem please remove and re-install
all plugins. Vagrant can attempt to do this automatically by running:

  vagrant plugin expunge --reinstall

Or you may want to try updating the installed plugins to their latest
versions:

  vagrant plugin update

Error message given during initialization: Unable to resolve dependency: user requested 'vagrant-hostsupdater (= 1.0.2)'

初期化に失敗してる。
vagrant本体のバージョンが1.9.1と古かったので、本体更新もかねてアップデートかけました。

そのあと、プラグインをアップデート

This command permanently deletes all currently installed user plugins. It
should only be used when a repair command is unable to properly fix the
system.

Continue? [N]: 
All user installed plugins have been removed from this Vagrant environment!

Vagrant will now attempt to reinstall user plugins that were removed.
Installing the 'vagrant-hostsupdater' plugin. This can take a few minutes...
Fetching: vagrant-hostsupdater-1.1.1.160.gem (100%)
Installed the plugin 'vagrant-hostsupdater (1.1.1.160)'!

無事にvagrant upかけられるようになりましたー

windows7ではPowershell

windows7環境で久々にvagrant立ち上げ、やはりこっちでもエラーが出たのでメモ

vagrant up
The version of powershell currently installed on this host is less than
the required minimum version. Please upgrade the installed version of
powershell to the minimum required version and run the command again.

  Installed version: 2

  Minimum required version: 3

Powershellのバージョンが2なので3に上げてくれっていうことなので、WMF5.1のインストールと構成から構成ファイルをDLしてインストール

VCCW稼働が一番ベター?

ところで、開発環境って一体どの組み合わせがベターなんでしょうね。windows/mac両OSで作業場/外出中の両環境からでもストレスなく入りたい。っていう横着者なので、VPNで繋いでローカル共有してきたんですが。。
どれがベストプラクティスなのか…どれもまだしっくりこないです。
爆速具合がいい感じのqiita記事みつけたので、今度やってみます。