Skip to content

Instantly share code, notes, and snippets.

@bogas04
Last active September 17, 2019 07:27
Show Gist options
  • Save bogas04/8c9702aba064b03b1162a0058c7b8f98 to your computer and use it in GitHub Desktop.
Save bogas04/8c9702aba064b03b1162a0058c7b8f98 to your computer and use it in GitHub Desktop.
# Install monorepo dependencies from internal npm registry
npm i `../../scripts/scope-packages.js @portal`
# Fun fact:
# `npm i <package-name>` would also install other dependencies if they aren't present in node_modules,
# along with the mentioned <package-name>
# Fun fact 2:
# In presence of package-lock.json, `npm i` would use those version numbers instead of fetching the latest ones
# This essentially makes it a hybrid of `npm i` and `npm ci`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment