Skip to content

Instantly share code, notes, and snippets.

@GitaiQAQ
Created January 22, 2024 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GitaiQAQ/1932bd26205a802a65c8e257c030692e to your computer and use it in GitHub Desktop.
Save GitaiQAQ/1932bd26205a802a65c8e257c030692e to your computer and use it in GitHub Desktop.
nvm use
npm install --location=global pnpm@${$(cat package.json | jq -r '.engines.pnpm // "latest"'):-latest}
npm install --location=global yarn@${$(cat package.json | jq -r '.engines.yarn // "latest"'):-latest}
npm install --location=global npm@${$(cat package.json | jq -r '.engines.npm // "latest"'):-latest}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment