Enum NodePackageManager

    • Enum Constant Detail

      • YARN

        @Stability(Deprecated)
        @Deprecated
        public static final NodePackageManager YARN
        Deprecated.
        For yarn 1.x use YARN_CLASSIC for yarn >= 2 use YARN_BERRY. Currently, NodePackageManager.YARN means YARN_CLASSIC. In the future, we might repurpose it to mean YARN_BERRY.
        (deprecated) Use yarn as the package manager.

      • YARN2

        @Stability(Deprecated)
        @Deprecated
        public static final NodePackageManager YARN2
        Deprecated.
        use YARN_BERRY instead
        (deprecated) Use yarn versions >= 2 as the package manager.

      • YARN_CLASSIC

        @Stability(Experimental)
        public static final NodePackageManager YARN_CLASSIC
        (experimental) Use yarn 1.x as the package manager.
      • YARN_BERRY

        @Stability(Experimental)
        public static final NodePackageManager YARN_BERRY
        (experimental) Use yarn versions >= 2 as the package manager.
      • NPM

        @Stability(Experimental)
        public static final NodePackageManager NPM
        (experimental) Use npm as the package manager.
      • PNPM

        @Stability(Experimental)
        public static final NodePackageManager PNPM
        (experimental) Use pnpm as the package manager.
      • BUN

        @Stability(Experimental)
        public static final NodePackageManager BUN
        (experimental) Use bun as the package manager.
    • Method Detail

      • values

        public static NodePackageManager[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NodePackageManager c : NodePackageManager.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NodePackageManager valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null