Want to run an npm 'global' command from a moon task. Can tasks use standard input as args? #1023
Answered
by
milesj
lukastransom
asked this question in
Q&A
-
As specified in the "Astro Example" in the moon Guides, I'd like to use the npm 'global' cli
Error: project_graph::missing_from_path
× No project could be located starting from path .. # /apps/astro/moon.yml
tasks:
astro:
command: 'astro'
local: true
... Are there any other ways to accomplish this? Sorry if I'm overlooking a basic setting somewhere.
|
Beta Was this translation helpful? Give feedback.
Answered by
milesj
Aug 29, 2023
Replies: 1 comment 1 reply
-
@lukastransom You need to use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lukastransom
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lukastransom You need to use
--
to separate moon args from their args:moon run astro:astro -- add @sanity/astro