以不同的路径运行纱线 [英] Run yarn in a different path
本文介绍了以不同的路径运行纱线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法为纱线指定工作目录?这将与 --modules-folder 选项不同.具体来说,我试图从包位置之外的位置运行 yarn install 命令.
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.
类似于git中的-C
推荐答案
--cwd
就是你想要的.
(用纱线 1.3.2 测试)
(tested with yarn 1.3.2)
这篇关于以不同的路径运行纱线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文