Is there a way to specify a working directory for yarn? This would be different then the --modules-folder option. Specifically, I'm trying to run the yarn install command from a location outside of the package location.
Similar to -C
in git
--cwd
is what you want.
(tested with yarn 1.3.2)
You can use --cwd
like so yarn --cwd <path> <yarn command>
来源:https://stackoverflow.com/questions/46891622/run-yarn-in-a-different-path