Hi guys.
While upgrading to release/2015-09-19.18 I get an error when compiling the zopfli node module due to it not being accessible via the specified URL
https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v11-linux-x64.tar.gzIs anyone else experiencing this problem or have a remedy for it?
Can I find the zopfli-v1.4.0-node-v11-linux-x64.tar.gz file somewhere else?
Error stack
> node-...@1.4.0 install /var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli
> node-pre-gyp install --fallback-to-build
node-pre-gyp http GET
https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v11-linux-x64.tar.gznode-pre-gyp http 403
https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v11-linux-x64.tar.gznode-pre-gyp http 403 status code downloading tarball
https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v11-linux-x64.tar.gz (falling back to source compile with node-gyp)
make: Entering directory `/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/build'
CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o
In file included from ../node_modules/nan/nan_new.h:193,
from ../node_modules/nan/nan.h:188,
from ../src/zopfli-binding.h:5,
from ../src/zopfli-binding.cc:3:
../node_modules/nan/nan_implementation_pre_12_inl.h: In static member function ‘static v8::Local<v8::FunctionTemplate> Nan::imp::Factory<v8::FunctionTemplate>::New(void (*)(const Nan::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Value>, v8::Local<v8::Signature>)’:
../node_modules/nan/nan_implementation_pre_12_inl.h:97: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
In file included from ../src/zopfli-binding.h:5,
from ../src/zopfli-binding.cc:3:
../node_modules/nan/nan.h: At global scope:
../node_modules/nan/nan.h:316: error: ‘REPLACE_INVALID_UTF8’ is not a member of ‘v8::String’
../node_modules/nan/nan.h: In function ‘void Nan::SetAccessor(v8::Local<v8::ObjectTemplate>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute, Nan::imp::Sig)’:
../node_modules/nan/nan.h:1872: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1877: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h: In function ‘bool Nan::SetAccessor(v8::Local<v8::Object>, v8::Local<v8::String>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<void>&), v8::Local<v8::Value>, v8::AccessControl, v8::PropertyAttribute)’:
../node_modules/nan/nan.h:1915: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1924: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h: In function ‘void Nan::SetNamedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:1962: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1967: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1973: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1979: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:1985: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h: In function ‘void Nan::SetIndexedPropertyHandler(v8::Local<v8::ObjectTemplate>, void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Integer>&), void (*)(uint32_t, const Nan::PropertyCallbackInfo<v8::Boolean>&), void (*)(const Nan::PropertyCallbackInfo<v8::Array>&), v8::Local<v8::Value>)’:
../node_modules/nan/nan.h:2032: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:2037: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:2043: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:2049: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
../node_modules/nan/nan.h:2055: warning: ISO C++ forbids casting between pointer-to-function and pointer-to-object
make: *** [Release/obj.target/zopfli/src/zopfli-binding.o] Error 1
make: Leaving directory `/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 2.6.32-573.3.1.el6.x86_64
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64/zopfli.node" "--module_name=zopfli" "--module_path=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64"
gyp ERR! cwd /var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli
gyp ERR! node -v v0.10.36
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64/zopfli.node --module_name=zopfli --module_path=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:766:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
node-pre-gyp ERR! System Linux 2.6.32-573.3.1.el6.x86_64
node-pre-gyp ERR! command "node" "/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli
node-pre-gyp ERR! node -v v0.10.36
node-pre-gyp ERR! node-pre-gyp -v v0.6.12
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64/zopfli.node --module_name=zopfli --module_path=/var/www/canvas/node_modules/brandable_css/node_modules/node-zopfli/lib/binding/node-v11-linux-x64' (1)
npm ERR! weird error 1
Binary downloaded and installed at /var/www/canvas/node_modules/brandable_css/node_modules/node-sass/vendor/linux-x64-11/binding.node
> node...@3.3.3 postinstall /var/www/canvas/node_modules
> node scripts/build.js
module.js:340
throw err;
^
Error: Cannot find module '/var/www/canvas/node_modules/scripts/build.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
npm ERR! not ok code 0