Set KENDO_UI_LICENSE environment variable in angular 8 project, not got while hit command npx kendo-ui-license activate

1 Answer 2379 Views
Licensing
OpkeyDev
Top achievements
Rank 2
OpkeyDev asked on 06 Apr 2023, 04:11 AM

As per the instruction given in kendo licensing document,

https://www.telerik.com/kendo-angular-ui/components/my-license/

I'm trying to activate kendo license, and got  'KENDO_UI_LICENSE environment variable not set' on the command prompt.

I add KENDO_UI_LICENSE variable in the environment file of the angular project

 

As I mention in the image above.

Then I open command prompt at the location where the package.json file present, and hit 'npx kendo-ui-license activate' command on the command prompt, and I got '(INFO) Kendo UI: KENDO_UI_LICENSE environment variable not set'

any Idea how can I set KENDO_UI_LICENSE variable in my project.

1 Answer, 1 is accepted

Sort by
1
Lance | Senior Manager Technical Support
Telerik team
answered on 06 Apr 2023, 06:37 PM | edited on 29 Jan 2024, 08:23 PM

Hi Yogesh,

Please take a look at the steps below to troubleshoot the Kendo UI License issue:

1. Confirm the expiration date of your license by referring to the Downloading the License key article.

2. Clear the cache stored by Angular by running the following command.

rm -rf .angular/cache

3. Verify that there is no older version of the license key in the environment variable by running the command below in PowerShell. It should be empty. If not, delete the environment variable.

Write-Output $env:KENDO_UI_LICENSE

4. Delete the node_modules folder and the package-lock.json file.

5. Clear the NPM cache by running the following command.

npm cache clean

6. Run `npm install` to install all the packages.

7. Download the Kendo UI License key and install it.

8. Run your application.


Additionally, to set the key as an environment variable, set the variable right before you execute the npx command, here's a quick 1-2-3 for you to follow.

Step 1. Open a terminal at the same location as the package.json, as you've previously done.

Step 2. Use the following command to set the env var:

KENDO_UI_LICENSE="your-license-key-goes-here"

Step 3. Now you can execute the npx activate command

npx kendo-ui-license activate


Environment variables are context sensitive, because you've set the variable in the same command prompt instance, the value will be present and the activation will succeed.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Adrian
Top achievements
Rank 1
commented on 11 Jan 2024, 02:18 PM | edited

Hi there, your answers it's not work. I have same problem with license.
Hetali
Telerik team
commented on 11 Jan 2024, 10:19 PM

Hi Adrian,

To assist you with installing the Kendo UI license, I have opened this new private Support ticket. Please follow the suggested steps and write back there if you need further assistance.

Regards,
Hetali
Progress Telerik

Roei
Top achievements
Rank 1
commented on 29 Jan 2024, 10:26 AM

Hi there, I have the same issue like Adrian, Could you please open a private support ticket for me also?
Hetali
Telerik team
commented on 29 Jan 2024, 08:27 PM | edited

Hi Roei,

I'd be happy to help show you how to open a support case. Before we take that step, can you take a moment and go through the troubleshooting steps I have added in the answer above? There are a couple steps that almost always fixes the problem and we can avoid any additional delay from opening a ticket.

Let me know if the steps fixes the issue. If you still have trouble afterwards, you can certainly open a new Ticket here.

Regards,
Hetali
Progress Telerik

Roei
Top achievements
Rank 1
commented on 30 Jan 2024, 07:09 AM

Hey Hetaili, I managed to handle the issue.
Before the steps above, if the license still not working, you should remove node_modules, package-lock.json and clear cache. Only after that activate the license with this command: 

npx kendo-ui-license activate
Tags
Licensing
Asked by
OpkeyDev
Top achievements
Rank 2
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or