Using "npm install" to install jquery-ui

Jquery UiNpmNpm Install

Jquery Ui Problem Overview


I see from here https://github.com/jquery/jquery-ui that jquery-ui's latest release is 1.11.4. However, when I use "npm install jquery-ui", it's only 1.10.3. I checked this version in node_modules/jquery-ui/jquery-ui.js.

Is there any way for me to install the latest version?

Jquery Ui Solutions


Solution 1 - Jquery Ui

jQuery-ui specifically needs to be build after installation. To avoid this, use npm install jquery-ui-dist

Solution 2 - Jquery Ui

T J gave the right answer, but it is a bit short / too generic.

The GitHub project is at https://github.com/jquery/jquery-ui/

So the real command would be npm install github:jquery/jquery-ui (you can even skip github: as npm defaults to it).

But this would bring you the latest, unstable version (around 1.12 at time of writing), and it didn't even work when I tried.

So it is better to fetch a tagged version:

npm install github:jquery/jquery-ui#1.11.4

Generic note: AFAIK, if the project hasn't a package.json file, this kind of install can still fail.

Solution 3 - Jquery Ui

Here is the current latest version (1.11.4), same package that bower is using, including all themes.

npm install github:components/jqueryui#1.11.4

Solution 4 - Jquery Ui

You can install it like

npm install github:mygithubuser/myproject

as mentioned in the install documentation

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBominView Question on Stackoverflow
Solution 1 - Jquery UischadView Answer on Stackoverflow
Solution 2 - Jquery UiPhiLhoView Answer on Stackoverflow
Solution 3 - Jquery UiGiannisView Answer on Stackoverflow
Solution 4 - Jquery UiT JView Answer on Stackoverflow