Replies: 2 comments 3 replies
-
|
Did you set an env var for the Anthropic api key or previously log in via oauth? Does pi spawned like that have access to either than env var or ~/.pi/agent/oauth.json? If not, then that explains it. If pi does have access, than that's a bug. |
Beta Was this translation helpful? Give feedback.
-
|
Tried to reproduce this but no luck on my end. Ran the reproduction repo both directly and via npm, also tested in a workspace setup. Everything works fine. Dug through the codebase looking for anything that reads npm_* variables. Nothing. Pi does not inspect npm environment at all, so the mechanism remains a mystery. Best guess is something specific to your setup (maybe a local pi installation somewhere that gets picked up, or some npm/node version quirk). The workaround you found works, so I'd stick with that. If you ever figure out what was actually happening, let me know. Closing the issue for now since we can't reproduce or identify the cause. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I run this command from node using spawn I get the error, but it works find when I run it from the command line. My first thought is environment but I can't find any differences. I wanted to ask here since I'm not sure that it's a bug. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions