Skip to content

Conversation

@ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented Mar 27, 2025

Problem

 *  Executing task in folder amazonq: yarn run watch 

zsh:1: command not found: yarn

 *  The terminal process "/opt/homebrew/bin/zsh '-l', '-c', 'yarn run watch'" failed to launch (exit code: 127). 
 *  Terminal will be reused by tasks, press any key to close it. 

Seems to be a vscode issue.

Given that we already have npm.packageManager set to npm in this repo, I'm not sure why it keeps trying to use yarn.

Solution

Run the watch task as a shell script


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ctlai95 ctlai95 marked this pull request as ready for review March 27, 2025 21:04
@ctlai95 ctlai95 requested a review from a team as a code owner March 27, 2025 21:04
Copy link
Contributor

@jpinkney-aws jpinkney-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY for making this change. I had been using:

"npm.packageManager": "npm",
"npm.scriptRunner": "npm",

but solving at the tasks level is probably a lot better

@ctlai95 ctlai95 merged commit 80c25f3 into aws:master Mar 27, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants