您是否要请求功能或报告错误?
特征
目前的行为是什么?
运行yarn install --flat
,yarn可能会问多个问题,要求解决软件包的版本。 但是,随着它深入到整个兔子的深处,向用户提供有关为何选择特定版本的更多信息可能是有益的。
如果当前行为是错误,请提供重现步骤。
查看当前项目的依赖关系。 令人遗憾的是,与测试相关的依赖关系已经过时,其他版本或多或少是最新的(不超过一个星期:))
在链接文件中的deps上运行yarn install --flat
,对于文件中几乎每个依赖项都会提出很多问题。 一个样品:
info Unable to find a suitable version for "inferno", please choose one by typing one of the numbers below:
1) "[email protected], inferno@^1.4.1, inferno@^1.1.1" which resolved to "1.4.1"
2) "inferno@^1.5.4" which resolved to "1.5.4"
Answer?
info Unable to find a suitable version for "babel-core", please choose one by typing one of the numbers below:
1) "[email protected]" which resolved to "6.23.1"
2) "babel-core@^6.24.0, babel-core@^6.0.0" which resolved to "6.24.0"
Answer?
...etc...
_和_嵌套依赖项:
info Unable to find a suitable version for "ansi-styles", please choose one by typing one of the numbers below:
1) "ansi-styles@^2.2.1" which resolved to "2.2.1"
2) "ansi-styles@~1.0.0" which resolved to "1.0.0"
3) "ansi-styles@^3.0.0" which resolved to "3.0.0"
Answer?
info Unable to find a suitable version for "jsesc", please choose one by typing one of the numbers below:
1) "jsesc@^1.3.0" which resolved to "1.3.0"
2) "jsesc@~0.5.0" which resolved to "0.5.0"
Answer?
... etc ...
预期的行为是什么?
很高兴发现:
node_modules
生成627个目录,因此无法一目了然地知道特定的依赖关系)最好的方法可能是将h
作为Answer?
的选项,这将详细说明原因和方式
请提及您的node.js,yarn和操作系统版本。
> node -v
v6.9.1
> yarn -V
0.21.3
> system_profiler SPSoftwareDataType
System Version: macOS 10.12.3 (16D32)
Kernel Version: Darwin 16.4.0
标记为高优先级,因为人们正在从进行平装的凉亭切换到Yarn。 我认为这是重要的用户体验改善。
所以...这还是高优先级吗?
问题仍然存在!
最有用的评论
标记为高优先级,因为人们正在从进行平装的凉亭切换到Yarn。 我认为这是重要的用户体验改善。