mirror of
https://github.com/lovell/sharp.git
synced 2025-12-18 23:05:04 +01:00
Docs: make use of optional dependencies even clearer
This commit is contained in:
@@ -46,6 +46,8 @@ if (sharp) {
|
||||
// Common error messages
|
||||
if (prebuiltPlatforms.includes(runtimePlatform)) {
|
||||
const [os, cpu] = runtimePlatform.split('-');
|
||||
help.push('- Ensure optional dependencies can be installed:');
|
||||
help.push(' npm install --include=optional');
|
||||
help.push('- Add platform-specific dependencies:');
|
||||
help.push(` npm install --os=${os} --cpu=${cpu} sharp`);
|
||||
help.push(' or');
|
||||
|
||||
Reference in New Issue
Block a user