mirror of
https://github.com/lovell/sharp.git
synced 2025-12-06 03:51:40 +01:00
15 lines
383 B
JavaScript
15 lines
383 B
JavaScript
/*!
|
|
Copyright 2013 Lovell Fuller and others.
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
try {
|
|
const { useGlobalLibvips } = require('../lib/libvips');
|
|
if (useGlobalLibvips() || process.env.npm_config_build_from_source) {
|
|
process.exit(1);
|
|
}
|
|
} catch (err) {
|
|
const summary = err.message.split(/\n/).slice(0, 1);
|
|
console.log(`sharp: skipping install check: ${summary}`);
|
|
}
|