npm warnings about glob, rimraf and inflight, all caused by a too old version of jscodeshift in Storybook's dependencies
#34437
Unanswered
robin-bourgeon-eficia
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hello,
My project has
"@storybook/cli": "^10.3.3"in itspackage.json. I did a freshnpm installafter removing bothpackage-lock.jsonandnode_modules, and I am getting the following warnings about dependencies that are either not supported anymore, leaking memory, or containing vulnerabilities:so I did a
npm list -ato inspect the tree and see which dependencies of my project are importinginflight@1.0.6,rimraf@2.6.3, andglob@7.2.3.It turns out that:
inflight@1.0.6is imported byglob@7.2.3glob@7.2.3is imported byrimraf@2.6.3rimraf@2.6.3is imported bytemp@0.8.4temp@0.8.4is imported byjscodeshift@0.15.2jscodeshift@0.15.2is imported by@storybook/cli@10.3.3.So it seems that the fact that
@storybook/cli@10.3.3importsjscodeshift@0.15.2is the root cause of the warnings.The latest version of
jscodeshiftdoes not importtempanymore, which can be seen here in the currentpackage.jsonofjscodeshift: https://github.com/facebook/jscodeshift/blob/main/package.jsonSo, do you plan upgrading your dependency on
jscodeshiftto the latest version, which could potentially fix all these issues at once?Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions