Skip to main content

Search and Top Navigation

#15209 closed bug (notabug)

Opened June 24, 2017 04:32PM UTC

Closed June 24, 2017 09:21PM UTC

Can't compile JQuery-UI from Github sources

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

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://github.com/jquery/jquery.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! code ELIFECYCLE
npm ERR! jquery-ui@1.12.2-pre build: 
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the jquery-ui@1.12.2-pre 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.

Attachments (0)
Change History (1)

Changed June 24, 2017 09:21PM UTC by scottgonzalez comment:1

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.