Code Monkey home page Code Monkey logo

Comments (8)

ChetSocio avatar ChetSocio commented on July 20, 2024

Why is this closed? I am still getting this error when using npx storybook@latest init :

Error: Unable to find versions of @storybook/cli using npm
    at NPMProxy.runGetVersions (C:\Users\dummy\AppData\Local\npm-cache\_npx\bc7e1e37fcb46ffc\node_modules\@storybook\core-common\dist\index.js:37:639)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async doInitiate (C:\Users\dummy\AppData\Local\npm-cache\_npx\bc7e1e37fcb46ffc\node_modules\@storybook\cli\dist\generate.js:146:992)
    at async withTelemetry (C:\Users\dummy\AppData\Local\npm-cache\_npx\bc7e1e37fcb46ffc\node_modules\@storybook\core-server\dist\index.js:28:3599)
    at async initiate (C:\Users\dummy\AppData\Local\npm-cache\_npx\bc7e1e37fcb46ffc\node_modules\@storybook\cli\dist\generate.js:180:245)

from storybook.

valentinpalkovic avatar valentinpalkovic commented on July 20, 2024

@ChetSocio I think you have answered on the wrong issue

from storybook.

ChetSocio avatar ChetSocio commented on July 20, 2024

@ChetSocio I think you have answered on the wrong issue

I have not answered anything. I am stating that the issue still persists even on latest version. I was not getting this a momth ago but after downloading latest update of storybook, this error is happening. I want someone to tell me how to solve this problem

from storybook.

valentinpalkovic avatar valentinpalkovic commented on July 20, 2024

@ChetSocio Neither is this issue closed nor has it anything to do with your mentioned error message: I think you are referring to this issue: #26553

But even the linked issue is not closed. Can you please clarify, which issue is closed and how your error message relates to this inflight deprecation issue?

from storybook.

ChetSocio avatar ChetSocio commented on July 20, 2024

Yeah sorry! I was about to comment on the issue #26553 But there was a link to this issue and i clicked in it and forgot as both
Inflight has been depreciated
and
Error: Unable to find versions of @storybook/cli using npm
were appearing in my terminal when i did:
npx storybook@latest init

and even tried installing @storybook/cli manually but no benefit.
The fact that I was not getting this error few months ago cannot be ignored. Everyone is getting this error after latest upgrade.

from storybook.

anomiex avatar anomiex commented on July 20, 2024

While #27366 fixed the dependency path originally described, there's another also depending on inflight.

$ npm add storybook
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 638 packages in 19s

@storybook/cli and @storybook/codemod both depend on jscodeshift 0.15.2 → temp 0.8.4 → rimraf 2.6.3 → glob 7.2.3 → inflight 1.0.6.

from storybook.

anomiex avatar anomiex commented on July 20, 2024

Also @storybook/preset-react-webpack@storybook/react-docgen-typescript-plugin 1.0.6--canary.9.0c3f3b7.0 → flat-cache 3.2.0 → rimraf 3.0.2 → glob 7.2.3 → inflight 1.0.6.

from storybook.

valentinpalkovic avatar valentinpalkovic commented on July 20, 2024

@anomiex Could you open an issue here to update flash-cache to its latest version (which should remove the transitive inflight dependency).

For the transitive dependency in jscodeshift I don’t really see a fix. They would have to replace either temp by another package or temp needs an update to use the latest rimraf version

from storybook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.