File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ const installationForced = !!(process.env.npm_config_sharp_install_force || proc
43
43
const fail = function ( err ) {
44
44
libvips . log ( err ) ;
45
45
if ( err . code === 'EACCES' ) {
46
- libvips . log ( 'Are you trying to install as a root or sudo user? Try again with the --unsafe-perm flag' ) ;
46
+ libvips . log ( 'Are you trying to install as a root or sudo user?' ) ;
47
+ libvips . log ( '- For npm <= v6, try again with the "--unsafe-perm" flag' ) ;
48
+ libvips . log ( '- For npm >= v8, the user must own the directory "npm install" is run in' ) ;
47
49
}
48
50
libvips . log ( 'Please see https://sharp.pixelplumbing.com/install for required dependencies' ) ;
49
51
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change 13
13
} else {
14
14
const [ platform , arch ] = platformAndArch . split ( '-' ) ;
15
15
help . push (
16
- '- Install with the -- verbose flag and look for errors: "npm install --ignore-scripts=false --verbose sharp"' ,
16
+ '- Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"' ,
17
17
`- Install for the current ${ platformAndArch } runtime: "npm install --platform=${ platform } --arch=${ arch } sharp"`
18
18
) ;
19
19
}
You can’t perform that action at this time.
0 commit comments