```
> node-zopfli@2.0.2 install /var/www/project/node_modules/node-zopfli
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@9.11.2 (node-v59 ABI, glibc) (falling back to source compile with node-gyp)
make: entry to the catalog «/var/www/project/node_modules/node-zopfli/build»
CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o
../src/zopfli-binding.cc: In member function ‘virtual void nodezopfli::CompressWorker::HandleOKCallback()’:
../src/zopfli-binding.cc:137:27: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local*) const’ is deprecated [-Wdeprecated-declarations]
callback->Call(2, argv);
^
In file included from ../src/zopfli-binding.h:5:0,
from ../src/zopfli-binding.cc:3:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
CXX(target) Release/obj.target/zopfli/src/png/zopflipng.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/blocksplitter.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/cache.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/deflate.o
../zopfli/src/zopfli/deflate.c: In function ‘OptimizeHuffmanForRle’:
../zopfli/src/zopfli/deflate.c:452:16: warning: argument 1 value ‘18446744073709551612’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
good_for_rle = (int*)malloc(length * sizeof(int));
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../zopfli/src/zopfli/lz77.h:28:0,
from ../zopfli/src/zopfli/deflate.h:28,
from ../zopfli/src/zopfli/deflate.c:20:
/usr/include/stdlib.h:424:14: note: in a call to allocation function ‘malloc’ declared here
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/gzip_container.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/hash.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/katajainen.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/lz77.o
In file included from ../zopfli/src/zopfli/lz77.c:21:0:
../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBitsValue(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:138:12: warning: ‘ZopfliGetLengthExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBits(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBitsValue(int dist) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:38:12: warning: ‘ZopfliGetDistExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBits(int dist) {
^~~~~~~~~~~~~~~~~~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/squeeze.o
In file included from ../zopfli/src/zopfli/squeeze.c:28:0:
../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBitsValue(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBitsValue(int dist) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/tree.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/util.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zlib_container.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zopfli_lib.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/zopflipng_lib.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng_util.o
SOLINK_MODULE(target) Release/obj.target/zopfli.node
COPY Release/zopfli.node
COPY /var/www/project/node_modules/node-zopfli/lib/binding/node-v59-linux-x64/zopfli.node
TOUCH Release/obj.target/action_after_build.stamp
make: exit from the catalog «/var/www/project/node_modules/node-zopfli/build»
> node-sass@4.9.0 install /var/www/project/node_modules/node-sass
> node scripts/install.js
Cached binary found at /home/user/.npm/node-sass/4.9.0/linux-x64-59_binding.node
> node-sass@4.9.0 postinstall /var/www/project/node_modules/node-sass
> node scripts/build.js
Binary found at /var/www/project/node_modules/node-sass/vendor/linux-x64-59/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN project@1.0.0 No repository field.
npm WARN project@1.0.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 615 packages from 578 contributors and audited 3671 packages in 15.428s
found 21 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
```
Well, let's try to fix it:
npm audit fix --force
```
npm WARN using --force I sure hope you know what you are doing.
> fsevents@1.2.4 install /var/www/project/node_modules/fsevents
> node install
npm WARN project@1.0.0 No repository field.
npm WARN project@1.0.0 license should be a valid SPDX license expression
+ compression-webpack-plugin@1.1.11
+ less@3.0.4
added 120 packages from 95 contributors, removed 14 packages and updated 3 packages in 5.745s
fixed 12 of 21 vulnerabilities in 3671 scanned packages
9 vulnerabilities required manual review and could not be updated
2 package updates for 12 vulns involved breaking changes
(installed due to `--force` option)
```
Generated
package.json
.npm install
``` > node-zopfli@2.0.2 install /var/www/project/node_modules/node-zopfli > node-pre-gyp install --fallback-to-build node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v59-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@2.0.2 and node@9.11.2 (node-v59 ABI, glibc) (falling back to source compile with node-gyp) make: entry to the catalog «/var/www/project/node_modules/node-zopfli/build» CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o ../src/zopfli-binding.cc: In member function ‘virtual void nodezopfli::CompressWorker::HandleOKCallback()’: ../src/zopfli-binding.cc:137:27: warning: ‘v8::Local Nan::Callback::Call(int, v8::Local*) const’ is deprecated [-Wdeprecated-declarations]
callback->Call(2, argv);
^
In file included from ../src/zopfli-binding.h:5:0,
from ../src/zopfli-binding.cc:3:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local argv[]) const {
^~~~
CXX(target) Release/obj.target/zopfli/src/png/zopflipng.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/blocksplitter.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/cache.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/deflate.o
../zopfli/src/zopfli/deflate.c: In function ‘OptimizeHuffmanForRle’:
../zopfli/src/zopfli/deflate.c:452:16: warning: argument 1 value ‘18446744073709551612’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
good_for_rle = (int*)malloc(length * sizeof(int));
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../zopfli/src/zopfli/lz77.h:28:0,
from ../zopfli/src/zopfli/deflate.h:28,
from ../zopfli/src/zopfli/deflate.c:20:
/usr/include/stdlib.h:424:14: note: in a call to allocation function ‘malloc’ declared here
extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur;
^~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/gzip_container.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/hash.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/katajainen.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/lz77.o
In file included from ../zopfli/src/zopfli/lz77.c:21:0:
../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBitsValue(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:138:12: warning: ‘ZopfliGetLengthExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBits(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBitsValue(int dist) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:38:12: warning: ‘ZopfliGetDistExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBits(int dist) {
^~~~~~~~~~~~~~~~~~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/squeeze.o
In file included from ../zopfli/src/zopfli/squeeze.c:28:0:
../zopfli/src/zopfli/symbols.h:231:12: warning: ‘ZopfliGetDistSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetDistSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:222:12: warning: ‘ZopfliGetLengthSymbolExtraBits’ defined but not used [-Wunused-function]
static int ZopfliGetLengthSymbolExtraBits(int s) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:161:12: warning: ‘ZopfliGetLengthExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetLengthExtraBitsValue(int l) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zopfli/src/zopfli/symbols.h:61:12: warning: ‘ZopfliGetDistExtraBitsValue’ defined but not used [-Wunused-function]
static int ZopfliGetDistExtraBitsValue(int dist) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/tree.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/util.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zlib_container.o
CC(target) Release/obj.target/zopfli/zopfli/src/zopfli/zopfli_lib.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/zopflipng_lib.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng.o
CXX(target) Release/obj.target/zopfli/zopfli/src/zopflipng/lodepng/lodepng_util.o
SOLINK_MODULE(target) Release/obj.target/zopfli.node
COPY Release/zopfli.node
COPY /var/www/project/node_modules/node-zopfli/lib/binding/node-v59-linux-x64/zopfli.node
TOUCH Release/obj.target/action_after_build.stamp
make: exit from the catalog «/var/www/project/node_modules/node-zopfli/build»
> node-sass@4.9.0 install /var/www/project/node_modules/node-sass
> node scripts/install.js
Cached binary found at /home/user/.npm/node-sass/4.9.0/linux-x64-59_binding.node
> node-sass@4.9.0 postinstall /var/www/project/node_modules/node-sass
> node scripts/build.js
Binary found at /var/www/project/node_modules/node-sass/vendor/linux-x64-59/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN project@1.0.0 No repository field.
npm WARN project@1.0.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 615 packages from 578 contributors and audited 3671 packages in 15.428s
found 21 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
```
Well, let's try to fix it:
npm audit fix --force
``` npm WARN using --force I sure hope you know what you are doing. > fsevents@1.2.4 install /var/www/project/node_modules/fsevents > node install npm WARN project@1.0.0 No repository field. npm WARN project@1.0.0 license should be a valid SPDX license expression + compression-webpack-plugin@1.1.11 + less@3.0.4 added 120 packages from 95 contributors, removed 14 packages and updated 3 packages in 5.745s fixed 12 of 21 vulnerabilities in 3671 scanned packages 9 vulnerabilities required manual review and could not be updated 2 package updates for 12 vulns involved breaking changes (installed due to `--force` option) ```
New
package.json
Additional info