Created
May 19, 2022 00:41
-
-
Save ronaldroe/d14a219de593c6ee149bd4f8ec50a40b to your computer and use it in GitHub Desktop.
Runs `npm install` in all child directories
This file contains hidden or 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
rootdir=`pwd` | |
echo $rootdir | |
for dir in */; do | |
cd "$rootdir/$dir" | |
echo "Installing $dir at $PWD" | |
npm i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment