Skip to content

Instantly share code, notes, and snippets.

@vampyar
Created May 24, 2023 11:06
Show Gist options
  • Save vampyar/5dfd9b09bc05994c018979c76c9d34bf to your computer and use it in GitHub Desktop.
Save vampyar/5dfd9b09bc05994c018979c76c9d34bf to your computer and use it in GitHub Desktop.
install all node dependencies in the root directory
find . -type d -name node_modules -prune -o -name 'package.json' -exec dirname {} \; | xargs -I{} sh -c 'cd "{}" && npm i'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment