Issues with yarn add

Hey everyone šŸ‘‹ I need to install some new libraries (pdflib-dist, pdf2pic, ffmpeg) in my Gadget app, but yarn add never completes the installation. I even tried installing older versions (since it seemed there might be an issue with the Node version I have on Gadget), but it still either fails or hangs indefinitely without showing any logs. I always get this warning: warning chart.js@4.4.3: The engine "pnpm" appears to be invalid. šŸ‘‰ Has anyone run into this before or know how to fix it? Thanks a lot šŸ™
11 Replies
Chocci_Milk
Chocci_Milk•4w ago
Hello, Could you please share a traceId for the yarn add command. There should at least be something in regards to the command having been fired
Emmanuelle
EmmanuelleOP•4w ago
This on is when I tried run yarn install
Emmanuelle
EmmanuelleOP•4w ago
When I try yarn add pdf2pic I can't see any logs
Chocci_Milk
Chocci_Milk•4w ago
I need the traceId of the run in order to look further into the issue. You should see logs in the environment's logs.
Emmanuelle
EmmanuelleOP•4w ago
traceId: 96e5f7d6ba021ceed90027ebcfc34d59 traceId for yarn add pdf2pic : e2277e2a48667a15a02efa145c142368
Chocci_Milk
Chocci_Milk•4w ago
What is this trace in reference to?
Emmanuelle
EmmanuelleOP•4w ago
run yarn install
Chocci_Milk
Chocci_Milk•4w ago
I'm looking at your package.json and everything looks to be successfully added. Are you not able to find the package in your node_modules?
Emmanuelle
EmmanuelleOP•4w ago
It seems to be ok for pdf2pic. Any idea of why there is "warning chart.js@4.4.3: The engine "pnpm" appears to be invalid." and "warning Workspaces can only be enabled in private projects." in the logs ?
Chocci_Milk
Chocci_Milk•4w ago
I don't think that it would be an issue cause its a warning but I also don't know what its referring to Has this given you enough information to keep working?
Emmanuelle
EmmanuelleOP•4w ago
Yes thanks a lot !

Did you find this page helpful?