乐闻世界logo
搜索文章和话题

Is there a difference between 'yarn dev' and 'yarn run dev'?

2024年7月22日 09:47

There is no difference. Both yarn dev and yarn run dev execute the same command. In Yarn, the run prefix is optional when executing scripts defined in the "scripts" section of package.json. Therefore, using either yarn dev or yarn run dev will execute the command named "dev" defined in the "scripts" section.

标签:Yarn