gpt4 book ai didi

webstorm - 如何在 WebStorm 2016.2.3 中使用 Yarn 而不是 npm 创建运行配置

转载 作者:行者123 更新时间:2023-12-03 08:01:44 29 4
gpt4 key购买 nike

我曾经通过 WebStorm 使用 npm。我通常只是在右上角添加一个基于 npm 的运行配置,就像在 here 中描述的那样.

我最近尝试了 Yarn,我正在尝试使用 npm 做类似的事情,但是我找不到选项。有没有办法做到这一点?或者我只需要等待 JetBrains 的更新?

最佳答案

yarn 将在 中得到支持2016.3

https://youtrack.jetbrains.com/issue/WEB-23737#comment=27-1669437 中所述

In WebStorm 2016.3 it will be possible to select yarn package instead of npm:

  • go to Settings | Languages & Frameworks | Node.js and NPM
  • click ellipsis button next to Node.js interpreter to open "Node.js interpreters" dialog

Also, installed yarn packages will be available in drop-down list for your convenience.

Once yarn package set, all npm-related actions will use the specified yarn package.



enter image description here

另请检查 WEB-23820 “ yarn 任务”支持的票证(侧面板类似于 NPM 任务之一,您可以在其中查看任务并执行它们)。

更新 (2016-11-15)
WebStorm 2016.3 昨天发布。上述两张票均已实现。

更新 (2016-12-13)
在 Windows 上,如果您通过 .msi 安装 Yarn安装程序,路径为 C:\Program Files (x86)\Yarn -- IDE(在本例中为 PhpStorm 2016.3.1)自动检测到它。

enter image description here

关于webstorm - 如何在 WebStorm 2016.2.3 中使用 Yarn 而不是 npm 创建运行配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40256897/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com