Coder Social home page Coder Social logo

Comments (4)

edisonLzy avatar edisonLzy commented on June 5, 2024 1

^1.2.3-beta.2 相当于 >=1.2.3-beta.2 <2.0.0,这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了
这里 这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了 怎么理解呢 1.2.4-beta.2 不也 符合< 2.0.0 吗

from blog.

KalkinWong avatar KalkinWong commented on June 5, 2024

^1.2.3-beta.2 相当于 >=1.2.3-beta.2 <2.0.0,这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了
这里 这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了 怎么理解呢 1.2.4-beta.2 不也 符合< 2.0.0 吗

可能是写错了吧~ 1.2.4-beta.2 => 2.1.4-beta.2

from blog.

Tao-Quixote avatar Tao-Quixote commented on June 5, 2024

^1.2.3-beta.2 相当于 >=1.2.3-beta.2 <2.0.0,这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了
这里 这其中 1.2.3-beta.4是可以的,但 1.2.4-beta.2就不行了 怎么理解呢 1.2.4-beta.2 不也 符合< 2.0.0 吗

可能是写错了吧~ 1.2.4-beta.2 => 2.1.4-beta.2

不是,这里没有写错,详情见:https://github.com/npm/node-semver#tilde-ranges-123-12-1

from blog.

webzhaochong avatar webzhaochong commented on June 5, 2024

当你执行 npm version premajor后,version 会变成 1.1.0-0 这里是否写错了,npm version preminor

from blog.

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.