Skip to content

Cannot install latest version of an npm package, possibly caching 4xx from NPM #624

@cormacrelf

Description

@cormacrelf

This is a re-issue of #491, because the problem did not go away by itself.

Basically:

  1. Add a package to a blitz
  2. I think you need to attempt to install a new version explicitly before publishing or before publish has propagated. I am pretty sure I did that.
  3. Publish a new version to NPM
  4. StackBlitz cannot find the new version when you try to install it, explicitly or through an update.

Example blitz where this is happening:

Step 4 is impossible to achieve. Here are 3 ways you might try:

  • If you refresh, it does not find the new version.
  • If you delete and re-add, it does not find the new version.
  • If you delete and re-add with an explicit version like [email protected], the UI comes up with an error saying "Failure: unsatisfied version range. Unable to resolve package [email protected]".

That Step 2 is necessary leads me to believe that StackBlitz/turbo is caching 4xx/5xx responses from NPM, which is wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions