Skip to content

Instantly share code, notes, and snippets.

@piontekle
Created October 21, 2020 16:13
Show Gist options
  • Save piontekle/2d98b1031164e9f018f20022aa092761 to your computer and use it in GitHub Desktop.
Save piontekle/2d98b1031164e9f018f20022aa092761 to your computer and use it in GitHub Desktop.
> sharp@0.20.8 install /Users/Lauren/Documents/GitHub/pdf-generator/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached /Users/Lauren/.npm/_libvips/libvips-8.6.1-darwin-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=12.18.3 runtime=node arch=x64 platform=darwin)
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
In file included from ../src/common.cc:27:
../src/common.h:82:20: error: no member named 'Handle' in namespace 'v8'
bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
~~~~^
../src/common.h:82:37: error: expected '(' for function-style cast or type construction
bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
~~~~~~~~~~^
../src/common.h:82:39: error: use of undeclared identifier 'obj'
bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
^
../src/common.h:82:56: error: expected '(' for function-style cast or type construction
bool HasAttr(v8::Handle<v8::Object> obj, std::string attr);
~~~~~~~~~~~ ^
../src/common.h:83:29: error: no member named 'Handle' in namespace 'v8'
std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
~~~~^
../src/common.h:83:46: error: expected '(' for function-style cast or type construction
std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
~~~~~~~~~~^
../src/common.h:83:48: error: use of undeclared identifier 'obj'
std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
^
../src/common.h:83:65: error: expected '(' for function-style cast or type construction
std::string AttrAsStr(v8::Handle<v8::Object> obj, std::string attr);
~~~~~~~~~~~ ^
../src/common.h:84:37: warning: variable templates are a C++14 extension [-Wc++14-extensions]
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
^
../src/common.h:84:48: error: no member named 'Handle' in namespace 'v8'
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
~~~~^
../src/common.h:84:65: error: expected '(' for function-style cast or type construction
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
~~~~~~~~~~^
../src/common.h:84:67: error: use of undeclared identifier 'obj'
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
^
../src/common.h:84:84: error: expected '(' for function-style cast or type construction
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
~~~~~~~~~~~ ^
../src/common.h:84:89: error: expected ';' at end of declaration
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
^
;
../src/common.h:84:90: error: expected unqualified-id
template<typename T> v8::Local<T> AttrAs(v8::Handle<v8::Object> obj, std::string attr) {
^
../src/common.h:87:26: warning: variable templates are a C++14 extension [-Wc++14-extensions]
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
^
../src/common.h:87:37: error: no member named 'Handle' in namespace 'v8'
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
~~~~^
../src/common.h:87:54: error: expected '(' for function-style cast or type construction
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
~~~~~~~~~~^
../src/common.h:87:56: error: use of undeclared identifier 'obj'
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
^
../src/common.h:87:73: error: expected '(' for function-style cast or type construction
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
~~~~~~~~~~~ ^
../src/common.h:87:78: error: expected ';' at end of declaration
template<typename T> T AttrTo(v8::Handle<v8::Object> obj, std::string attr) {
^
;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/sharp/src/common.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/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Lauren/Documents/GitHub/pdf-generator/node_modules/sharp
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sharp@0.20.8 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 sharp@0.20.8 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/Lauren/.npm/_logs/2020-10-21T16_09_31_860Z-debug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment