Coder Social home page Coder Social logo

Comments (9)

desbo avatar desbo commented on June 13, 2024 3

If it's any help you can use https://gist.github.com/desbo/906326b08c05aa09e2fe to replace any occurrences of ansi-styles at 2.2.0 with 2.2.1 in npm-shrinkwrap.json.

from ansi-styles.

dr-nafanya avatar dr-nafanya commented on June 13, 2024 2

Manual search/replace of [email protected] to [email protected] in npm-shrinkwrap.json does work.

from ansi-styles.

Qix- avatar Qix- commented on June 13, 2024 1

@xcatliu We're aware of the problems with unpublish 👍 Checkout the post mortem.

from ansi-styles.

Qix- avatar Qix- commented on June 13, 2024

Without knowing anything about npm-shrinkwrap, I would imagine manually adjusting the version to 2.2.1 would be the ideal method.

Would love to have a definitive answer.

// @sindresorhus

from ansi-styles.

Qix- avatar Qix- commented on June 13, 2024

Thank you @dr-nafanya.

from ansi-styles.

Qix- avatar Qix- commented on June 13, 2024

Keeping open for discovery.

from ansi-styles.

tlrobinson avatar tlrobinson commented on June 13, 2024

Yes, manually editing works in this case, however it leaves the color-convert dependency that was added in 2.2.0 in npm-shrinkwrap.json, which I think is harmless (aside from a little bit of wasted bandwidth), but if a dependency were added rather than removed this probably wouldn't work.

from ansi-styles.

Qix- avatar Qix- commented on June 13, 2024

It shouldn't be a problem. The new version of color-convert was designed to work with the existing chalk API.

If it becomes a problem, let me know.

Good catch though 👍

from ansi-styles.

xcatliu avatar xcatliu commented on June 13, 2024

Thanks @dr-nafanya
Problem fixed when I manually replaced [email protected] to [email protected] in npm-shrinkwarp.json

ansi-styles is an awesome module to control styles in terminal, but please known It is generally considered bad behavior to remove versions of a library that others are depending on! Consider using the deprecate command instead, if your intent is to encourage users to upgrade.

Anyway, many thanks to @Qix- for the awesome library!

from ansi-styles.

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.