What happens when you run yarn run foo is this: Yarn creates a temporary directory; Yarn writes in this temporary directory an indirection script for Node This indirection script is meant to enforce all child processes to use the same Node than Yarn; We also use it to automatically inject the -r flag to any child process, if needed (cf here) Note that this is different from setting enableScripts to false because the later will disable build scripts, and thus affect the content of the artifacts generated on disk, whereas the former will just disable the build step As you type, IntelliJ IDEA shows the matching scripts. How do I run a simple file script from using yarn in windows. HAR files are commonly used to investigate network performance, and can be analyzed with tools such as Google’s HAR Analyzer or HAR Viewer. Scripts are a great way of automating tasks related to your package, such as simple build processes or development tools. Usage: yarn [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [SUB_COMMAND] [COMMAND_OPTIONS] YARN has an option parsing framework that employs parsing generic options as well as running classes. Ensure that your script returns a value and prints something to the console. If the --skip-builds option is set, Yarn will not run the build scripts at all. I'm new to the whole Node.js world but this probably simple problem is driving me nuts. It's basically a simplified version of a problem I'm having with a bigger project. Using the "scripts" field, you can define various scripts to be run as yarn run