BLUE
PHP 7.4.33
Path:
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/sharp/install
Run
Logout
Edit File
Size: 1.24 KB
Close
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/sharp/install/check.js
Text
Base64
// Copyright 2013 Lovell Fuller and others. // SPDX-License-Identifier: Apache-2.0 'use strict'; try { const { useGlobalLibvips, globalLibvipsVersion, log, spawnRebuild } = require('../lib/libvips'); const buildFromSource = (msg) => { log(msg); log('Attempting to build from source via node-gyp'); try { const addonApi = require('node-addon-api'); log(`Found node-addon-api ${addonApi.version || ''}`); } catch (err) { log('Please add node-addon-api to your dependencies'); return; } try { const gyp = require('node-gyp'); log(`Found node-gyp ${gyp().version}`); } catch (err) { log('Please add node-gyp to your dependencies'); return; } log('See https://sharp.pixelplumbing.com/install#building-from-source'); const status = spawnRebuild(); if (status !== 0) { process.exit(status); } }; if (useGlobalLibvips(log)) { buildFromSource(`Detected globally-installed libvips v${globalLibvipsVersion()}`); } else if (process.env.npm_config_build_from_source) { buildFromSource('Detected --build-from-source flag'); } } catch (err) { const summary = err.message.split(/\n/).slice(0, 1); console.log(`sharp: skipping install check: ${summary}`); }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
check.js
1.24 KB
lrw-r--r--
2025-03-28 11:04:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).