最佳答案
yarn install -h
suggests that the -g
(global) option is DEPRECATED
. How am I supposed to indicate that I want a bunch of packages (from package.json
/ yarn.lock
files) to be installed globally?
Options I saw:
yarn global [command]
has things such as ls
and add
but not install
. add
only works with particular package names, if I understand correctly. I already have my yarn.lock
file ready, I don't want to repeat myself on the command line.yarn global add
each package one by one. Now my list of packages would be imperative instead of declarative.Specifically, I'd like to use one executable from one of those packages.