Is it possible to install Kendo UI Professional as npm module?
I see there's a git repository with Kendo UI Professional Bower package but i can't find Kendo UI Professional npm ​package.
Thanks.
35 Answers, 1 is accepted
We haven't really considered building a NPM package for Kendo UI. It doesn't make a lot of sense as we don't support NodeJS as a runtime.
Most of the widgets, if not all, require a live DOM to function which means a browser.
I hope this makes sense.
Regards,
T. Tsonev
Telerik

T Tsonev I agree it should be published on the NPM repository. The world is moving away from using bower and getting their packages directly from NPM. I am not running NodeJS server but I still use NPM for front end building and package management as are yourselves have a look at the build instructions.
https://github.com/telerik/kendo-ui-core
If you are relying on NPM to do the build of your own framework why not publish it out to NPM so we can do the same?
Hello William,
your observation is correct. In fact, JSPM is also something we should look into. A workaround you may utilize currently is to install Kendo UI from the git url using napa. Something like this in package.json should do the trick:
{
"scripts"
: {
"install"
:
"napa git+https://github.com/kendo-labs/bower-kendo-ui.git" // or the private bower url, respectively.
}
}
Regards,
Petyo
Telerik

And... then there's this:
https://twitter.com/nachocoloma/status/663622545162280960
:D​
Hello Josh,
yes, we follow the recent development of events regarding the bower development, too. Bower still works, but it looks like all current frameworks (react, angular, bootstrap to name a few) "recommend" the NPM way.
Regards,
Petyo
Telerik

Hi,
Has there been any progress on this? It's not possible to use napa with private repos.
Thanks,
Andy
Hello Andy,
I am afraid that we do not offer private npm packages yet.
Regards,Alex Gyoshev
Telerik

Hi Telerik guys,
Just saying that I would really appreciate a NPM packages, and the reason is pretty much simple... the module bundler (WebPack, Browserify, etc.) are on NPM. There is no need to support NodeJS as a runtime, just to support NPM.
Yes, we can add Bower to the projects... but quite bad to have 2 package managers.
Kind regards,
Pascale



Someone beat me to adding this to the Kendo UserVoice feedback portal: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/11434125-npm-package
Please go there to vote for this issue, versus any more comments on this thread.

@ T Tsonev,
Your arguments would against having an npm install for Kendo UI Pro would apply equally to the open source version, yet there it is:
https://www.npmjs.com/package/kendo-ui-core
Install with:
npm install kendo-ui-core
Tools like Webpack and JSPM will resolve the differences between CommonJS, AMD and even ES6 modules (with a little help from Babel).
So why doesn't Telerik let us developers worry about that, you put Kendo UI Pro on npm, as we are asking?
Hello Mike,
You are right, and this task is currently in progress. Once we have a private NPM registry bound to our authorization infrastructure, we will provide Kendo UI Professional on NPM.
Regards,Alex Gyoshev
Telerik

Thank you, @Alex Gyoshev. That's great news!
Do you have an ETA for this?
It would be great to be able to ditch Bower, where Kendo UI Pro currently *does* reside. And that's the only reason that I'm forced to use Bower at the moment.
Hello Mike,
I am afraid that we have no estimate at this time.
Regards,Alex Gyoshev
Telerik


Any update on this, Alex (or anybody else at Telerik)?
Do we have a date or targeted release of KendoUI Pro on NPM?
there is no update on this. We don't have concrete estimates about the infrastructure necessary to support this effort.
Regards,
Petyo
Telerik

Is there any updates about this? Or any place that I could check this out?
I'm studing angular2 rigth now and I look forward for this update!
The private NPM registry setup is part of our Q3 2016 development efforts. Once ready, we will announce the necessary details.
Regards,
Petyo
Telerik
We need your feedback, as a proof-of-concept NPM installation is available for Kendo UI Professional. Please check the installation steps here:
http://docs.telerik.com/kendo-ui/intro/installation/npm#kendo-ui-professional
Regards,
Petyo
Telerik

It worked fine for me, Petyo. And very quick compared to Bower.
I didn't need my login details though. Just the following was enough for me to install from npm:
npm install 'git+https://bower.telerik.com/npm-kendo-ui.git' --save-dev
And that's just as well, because wouldn't my login details have been saved in the package.json file if I'd followed the instructions on that URL?
Thank you! Given that you mention Bower, most likely you have followed the steps to save your credentials in the _netrc file - hence you don't need them here. At any case, I think you will need them in the package.json file in order for the installation to work when deploying to production.
Regards,
Petyo
Telerik

may you post your setup somewhere? Most likely, what's missing is the dependency of kendo ui to angular which should be set manually.
Regards,
Petyo
Telerik

the kendo project jquery dependency version is set to >=1.9.1. this pulls in version 3.x.x which doesn't work. it might be better to set a peer dependency and let the people using the library decide which version of jquery to use.
Thank you for the heads up - I think that this can be fixed by narrowing down the jQuery version in the dependencies list of the app.
In other news, we are working on making Kendo UI work with jQuery 3.
Regards,
Petyo
Telerik

The only way i could get this working with webpack and angular was by bringing down jquery 2.2.4 and replacing all the `require('jquery');` statements in the kendo.*.js libs with `require('jquery/dist/jquery.js');`. Am I over looking something here?
Thanks...

Apologies,
I retract my previous comment (not sure how to delete it). using an explicit reference to jquery version 2.2.4 in my app's package.json has kendo working out the box... 1.9.1 doesn't work though. Cheers.

Hello,
Thanks for providing a npm access for kendo. It's the last dependency requiring me to keep bower in my project.
Since this is a git repository, I understand it's source files only (you do provide min.css files though).
I was wondering if you could provide a build version of the js files (min.js) as well?
If it's not possible, can you provide your internal build process to produce the same min.js we are getting from the bower package?
Thanks!
the minification process is a fairly standard thing - we use uglifyJS. Most likely, you consume the npm package through a tool like browserify, webpack, or systemjs - all of them include standard means to minifiy the final output.
Regards,
Petyo
Telerik

Hello,
I can't seem to get this to work. When I try the instructions here:
http://docs.telerik.com/kendo-ui/intro/installation/npm#kendo-ui-professional
I get an npm error:
fatal: Unable to find remote helper for 'git+https'


Hello,
I looked into this further and this may be related to this issue for npm:
https://github.com/npm/npm/issues/8881#issuecomment-120108472
So looks like the format of the url for a 'git+https//' url may have changed. Can someone look into this and see if this is the issue?
