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
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
This on is when I tried run yarn install
When I try yarn add pdf2pic I can't see any logs
I need the traceId of the run in order to look further into the issue. You should see logs in the environment's logs.
traceId: 96e5f7d6ba021ceed90027ebcfc34d59
traceId for yarn add pdf2pic : e2277e2a48667a15a02efa145c142368
What is this trace in reference to?
run yarn install
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?
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 ?
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?
Yes thanks a lot !