You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon investigation, it appears that the issue is because yarn global outdated is not a valid command, as called here. The fix would be to perform the equivalent of cd $(yarn global dir); yarn outdated instead.
Might make sense to update the below code to set the working directory of the executed command instead of adding global to the args.
# Yarn global arg is inserted before the command (e.g. `yarn global {some-command}`)
args.insert(0, 'global')
sargunv
changed the title
community.general.yarn module fails when provided state:latest
community.general.yarn module fails when provided state:latest and global:true
Dec 19, 2022
Summary
The docs state I can pass a
state: latest
parameter, but when I try it I get an error "Invalid subcommand" if global is also set.Issue Type
Bug Report
Component Name
yarn
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
macOS 13
yarn 1.22.19
Steps to Reproduce
Expected Results
I expected node-gyp to be installed or upgraded via
yarn global
.Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: