Opened 6 years ago

Closed 6 years ago

#15209 closed bug (notabug)

Can't compile JQuery-UI from Github sources

Reported by: PVM Owned by:
Priority: minor Milestone: none
Component: ui.core Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:


Back in November, I found a minor bug in JQuery-UI (ticket 15098). The bug was promptly fixed by Scott Gonzales. I have been eagerly awaiting the next release of JQuery-UI to use my much needed function. Unfortunately JQuery-UI has a rather slow update cycle. So it looks like I will have to build my own version from its Github sources. I successfully compiled JQuery with npm based on JQuery's Github instructions:

git clone git://
cd jquery && npm run build

I then tried to follow the same instructions for JQuery-UI but this didn't work. First I got the following error message:

npm ERR! missing script: build

So I modified the scripts field in package.json as follows:

"scripts": {
  "build": "npm install && grunt",
  "test": "grunt"

This almost compiled, but failed at the end, spitting out the following error messages:

npm ERR! Linux 4.8.0-54-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! [email protected] build: `npm install && grunt`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the [email protected] build script 'npm install && grunt'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jquery-ui package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install && grunt
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs jquery-ui

These final two lines of these instructions brought me here.

Change History (1)

comment:1 Changed 6 years ago by Scott González

Resolution: notabug
Status: newclosed

I'm not sure where you got the idea that npm run build should be a thing that exists. Running grunt works for me and everyone else though. This is definitely not the recommended way to build jQuery UI though, and is not supported as a way to get a proper build of jQuery UI. You should be using require, webpack, or manually composing your dependencies.

Note: See TracTickets for help on using tickets.