I have attempted to update Node, NPM, Puppeteer et al. I have a problem in that sharp errors when I try and update. I am issuing. the command 'npm update sharp' and get the following output:
[email protected] install /Users/AUser/Puppeteer/node_modules/sharp
(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached /Users/AUser/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=13.3.0 runtime=node arch=x64 libc= platform=darwin)
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
CXX(target) Release/obj.target/sharp/src/metadata.o
CXX(target) Release/obj.target/sharp/src/stats.o
../src/stats.cc:130:19: error: no matching member function for call to 'Set'
channels->Set(i, channelStat);
~~^~~
/Users/AUser/Library/Caches/node-gyp/13.3.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3 arguments, but 2 were
provided
V8_WARN_UNUSED_RESULT Maybe
^
/Users/AUser/Library/Caches/node-gyp/13.3.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3 arguments, but 2 were
provided
V8_WARN_UNUSED_RESULT Maybe
^
1 error generated.
make: * [Release/obj.target/sharp/src/stats.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:219:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/Cellar/node/13.3.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/AUser/Puppeteer/node_modules/sharp
gyp ERR! node -v v13.3.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/AUser
2019-12-11T10_53_30_298Z-debug.log
/.npm/_logs/2019-12-11T10_53_30_298Z-debug.log
Support for Node.js 13 was added in sharp v0.23.2.
https://sharp.pixelplumbing.com/en/stable/changelog/#v0232-28th-october-2019
I am not questioning that the version of node is supported, I am just unable to update sharp as described above.
The npm update command will only update as far as the semver range defined in your package.json file will allow.
With those few words, the problem is resolved.
Thank you.
Most helpful comment
Support for Node.js 13 was added in sharp v0.23.2.
https://sharp.pixelplumbing.com/en/stable/changelog/#v0232-28th-october-2019