<#22235 node_build_script failure during run goal ...
# github-notifications
c
#22235 node_build_script failure during run goal with yarn Issue created by nikhila-dwarakanath-zocdoc Describe the bug A run goal on the node_build_script with yarn as a package manager fails with the below error.
Copy code
Unknown Syntax Error: Command not found; did you mean:

$ yarn workspace <workspaceName> <commandName> ...
Currently it is executing -
yarn workspace <test_workspace> --cwd <path_to_workspace> run test
, ideally it should execute this way -
yarn workspace <test_workspace> run test --cwd <path_to_workspace>
. Here is the code where I suspect the run goal is failing. There are some differences in the
run_node_build_script
defined in package goal here and in run goal here. Do we want to standardize the logic across these goals for the
run_node_build_script
? Pants version 2.27.0.dev2 OS MacOS Additional info Add any other information about the problem here, such as attachments or links to gists, if relevant. pantsbuild/pants