Installing with Bower

ASP.NET Core v2.1 no longer supports Bower. For more information on the alternative approach for copying the Kendo UI scripts, refer to the following section on copying client resources with NPM and Webpack.

Bower is a popular package manager for the web that handles frameworks, libraries, assets, and utilities.

Kendo UI maintains the Kendo UI Core and the Kendo UI Professional Bower packages. All Kendo UI official releases, service packs, and internal builds are uploaded to both of them.

The Kendo UI Professional Bower package is available only for commercial license holders. For more information, refer to the list of the Kendo UI components for jQuery and their bundle support.

Kendo UI Core on Bower

The Kendo UI Core Bower package is available as a public GitHub repository and is also registered as kendo-ui-core in the Bower registry. To install the Kendo UI Core Bower package, run the bower install kendo-ui-core command. To check the available versions of Kendo UI Core Bower package, run the bower info kendo-ui-core --verbose command.

Kendo UI Professional on Bower

The Kendo UI Professional Bower package is available as a private GitHub repository. To access the package, active your subscription for Kendo UI or DevCraft. Bower prompts you to enter your username and password during the installation and update processes. To install the Kendo UI Professional Bower package, run the bower install https://bower.telerik.com/bower-kendo-ui.git command. To check the available versions of Kendo UI Professional Bower package, run the bower info kendo-ui --verbose command.

You can also add the package to the bower.json file.

json
"dependencies": {
      "kendo-ui": "https://bower.telerik.com/bower-kendo-ui.git#~2019.1.115"
}

During the installation of the Bower package, you might be requested to confirm your credentials more than once. For further information on how to store your username and password, refer to the following section on credentials.

Storing Your Credentials

To avoid being asked multiple times to provide your credentials while installing the Kendo UI Bower packages, use either of the following approaches to preserve them for a future reference:

  • Cache your credentials by storing them as plain text in a .netrc file.
  • Store your credentials by using the Git credential helpers. For detailed information on how to do this, refer to Stack Overflow and follow the discussion on skipping the password typing.

Storing on Windows

  • Caching your credentials is required if you use the Kendo UI Bower package in an ASP.NET vNext project.
  • If your home directory contains spaces in its path (for example, c:\Documents and Settings\jane), Git might have problems resolving it. That is why you need to update your %HOME% environment variable to point to a directory and exclude any spaces in its name.
  1. Create a text file called _netrc in your home directory—for example, c:\users\jane\_netrc.
  2. Declare a HOME environment variable.

      C:\> SETX HOME %USERPROFILE%
    
  3. Add the credentials using the format.

      machine bower.telerik.com
          login my-telerik.identity@example.com
          password mysecret
    

Storing on Unix-Like Systems

  1. In your home directory, create a file called .netrc (~/.netrc). Verify that you modify the file permissions to make it readable only to you.

      touch ~/.netrc
      chmod 0600 ~/.netrc
    
  2. Add your credentials to the ~/.netrc file using the format demonstrated in the following example.

      machine bower.telerik.com
          login my-telerik.identity@example.com
          password mysecret
    

Troubleshooting

This section provides solutions for common issues you might encounter while installing the Kendo UI Bower packages.

An SSL issue occurs on Windows

Description Bower on Windows has troubles installing the repository and shows the fatal: unable to access 'https://bower.telerik.com/bower-kendo-ui.git/': SSL certificate problem: unable to get local issuer certificate error message.

Cause The underlying Git installation is missing the certificate bundle.

Solution Follow the steps in this article.

  • The 1.9.5 Git build does not work with the Bower package.
  • To use the @ symbol in the URL for accessing the Kendo UI Bower repository (because of network restrictions or admin rules, for example), encode it as https://firstname.lasname%40domain.com@bower.telerik.com/bower-kendo-ui.git.

Restore fails in ASP.NET Core MVC RC projects in Visual Studio 2015

Description A Git client that is bundled in Visual Studio is unable to authenticate with the Kendo UI Bower repository and throws an error messages similar to ECMDERR Failed to execute "git ls-remote --tags --heads https://bower.telerik.com/bower-kendo-ui.git", exit code of #-532462766.

Solution Use a Windows port of Git and your stored credentials instead of the built-in client:

  1. Store your credentials.
  2. Install Git for Windows.
  3. Right-click the Bower folder under Dependencies.
  4. Select Configure external tools.
  5. Uncheck $(DevEnvDir)\Extensions\Microsoft\Web Tools\External\git and/or $(VSINSTALLDIR)\Web\External\git.
  6. Add a new entry C:\Program Files\Git\bin or your installation location.

Adding a new Chart entry in Internet Explorer

Next Steps

See Also

In this article
Not finding the help you need? Improve this article