Search code examples
angularbuildversion

Angular supported version format


I am quite new to Angular builds, when updating our package.json from

{
  "name": "webapp",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",

version 0.0.0 -> 0.0.0.0 format & performing the ng build it fails with

added 1 package from 3 contributors in 0.146s
npm WARN Invalid version: "0.0.0.0" 

If its changed back to 0.0.0, it builds without any issues. Is there any standard that allows only x.x.x versioning in angular?


Solution

  • Angular version numbers have three parts: major.minor.patch. For example, version 7.2.11 indicates major version 7, minor version 2, and patch level 11.

    I found it in angular documentation. they only support Major release, Minor release, and patch release. it only supports x.x.x.

    you can find more about versioning here