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.
Is there a difference between 'yarn dev' and 'yarn run dev'?
2024年7月22日 09:47