mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
14 lines
383 B
JavaScript
14 lines
383 B
JavaScript
var which = require( "which" ),
|
|
spawn = require( "child_process" ).spawn;
|
|
|
|
try {
|
|
which.sync( "bower" );
|
|
} catch( error ) {
|
|
console.error( "Bower must be installed to build jQuery." );
|
|
console.error( "Please install Bower by running the following command:" );
|
|
console.error( "npm install -g bower" );
|
|
process.exit( 0 );
|
|
}
|
|
|
|
spawn( "bower", [ "install" ], { stdio: "inherit" } );
|