Created
March 21, 2012 08:13
-
-
Save yukidarake/2145561 to your computer and use it in GitHub Desktop.
Node.jsをバージョンアップした際、npmのモジュールインストールし忘れを防ぐ
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
for x in optimist async jshint; do | |
if ! npm ls -g | grep $x > /dev/null; then | |
npm install -g $x | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment