question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Solved] Bunch of erros on fresh installation via source using nodejs (as root user)

See original GitHub issue

Node version:

nodejs 10.16.3

Steps Followed:

Install node.js git clone https://github.com/bkimminich/juice-shop.git cd juice-shop npm install (only has to be done before first start or when you change the source code) npm start

`npm WARN deprecated joi@13.7.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated jsonwebtoken@0.1.0: Critical vulnerability fix in v5.0.0. See https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/ npm WARN deprecated jws@0.2.6: Security update: Versions below 3.0.0 are deprecated. npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated hoek@5.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()

iltorb@1.3.10 install /opt/juice-shop/node_modules/iltorb detect-libc prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=10.16.3 runtime=node arch=x64 platform=linux) make: Entering directory ‘/opt/juice-shop/node_modules/iltorb/build’ CC(target) Release/obj.target/iltorb/brotli/common/dictionary.o CC(target) Release/obj.target/iltorb/brotli/dec/bit_reader.o CC(target) Release/obj.target/iltorb/brotli/dec/decode.o …/brotli/dec/decode.c: In function ‘BrotliDecoderDecompressStream’: …/brotli/dec/decode.c:2013:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_METABLOCK_BEGIN; ~^~~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2015:7: note: here case BROTLI_STATE_METABLOCK_BEGIN: ^~~~ …/brotli/dec/decode.c:2018:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_METABLOCK_HEADER; ~^~~~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2020:7: note: here case BROTLI_STATE_METABLOCK_HEADER: ^~~~ …/brotli/dec/decode.c:2089:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_HUFFMAN_CODE_1; ~^~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2091:7: note: here case BROTLI_STATE_HUFFMAN_CODE_1: { ^~~~ …/brotli/dec/decode.c:2096:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_HUFFMAN_CODE_2; ~^~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2099:7: note: here case BROTLI_STATE_HUFFMAN_CODE_2: { ^~~~ …/brotli/dec/decode.c:2104:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_HUFFMAN_CODE_3; ~^~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2107:7: note: here case BROTLI_STATE_HUFFMAN_CODE_3: { ^~~~ …/brotli/dec/decode.c:2119:45: warning: this statement may fall through [-Wimplicit-fallthrough=] case BROTLI_STATE_METABLOCK_HEADER_2: { ^ …/brotli/dec/decode.c:2142:7: note: here case BROTLI_STATE_CONTEXT_MODES: ^~~~ …/brotli/dec/decode.c:2147:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_CONTEXT_MAP_1; ~^~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2149:7: note: here case BROTLI_STATE_CONTEXT_MAP_1: ^~~~ …/brotli/dec/decode.c:2157:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_CONTEXT_MAP_2; ~^~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2159:7: note: here case BROTLI_STATE_CONTEXT_MAP_2: ^~~~ …/brotli/dec/decode.c:2185:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_TREE_GROUP; ~^~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:2187:7: note: here case BROTLI_STATE_TREE_GROUP: ^~~~ …/brotli/dec/decode.c:2281:18: warning: this statement may fall through [-Wimplicit-fallthrough=] s->state = BROTLI_STATE_DONE; ~^~~~~~~~~~~ …/brotli/dec/decode.c:2283:7: note: here case BROTLI_STATE_DONE: ^~~~ …/brotli/dec/decode.c: In function ‘DecodeMetaBlockLength’: …/brotli/dec/decode.c:193:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_EMPTY; ~^~~~~~~~~ …/brotli/dec/decode.c:196:7: note: here case BROTLI_STATE_METABLOCK_HEADER_EMPTY: ^~~~ …/brotli/dec/decode.c:204:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_NIBBLES; ~^~~~~~~~~~~ …/brotli/dec/decode.c:207:7: note: here case BROTLI_STATE_METABLOCK_HEADER_NIBBLES: ^~~~ …/brotli/dec/decode.c:218:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_SIZE; ~^~~~~~~~ …/brotli/dec/decode.c:221:7: note: here case BROTLI_STATE_METABLOCK_HEADER_SIZE: ^~~~ …/brotli/dec/decode.c:233:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = ~^ BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ …/brotli/dec/decode.c:237:7: note: here case BROTLI_STATE_METABLOCK_HEADER_UNCOMPRESSED: ^~ …/brotli/dec/decode.c:255:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_BYTES; ~^ …/brotli/dec/decode.c:258:7: note: here case BROTLI_STATE_METABLOCK_HEADER_BYTES: ^~ …/brotli/dec/decode.c:267:38: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_metablock_header = BROTLI_STATE_METABLOCK_HEADER_METADATA; ~^~ …/brotli/dec/decode.c:270:7: note: here case BROTLI_STATE_METABLOCK_HEADER_METADATA: ^~ …/brotli/dec/decode.c: In function ‘CopyUncompressedBlockToOutput’: …/brotli/dec/decode.c:1317:34: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_uncompressed = BROTLI_STATE_UNCOMPRESSED_WRITE; ~^~~~~ …/brotli/dec/decode.c:1320:7: note: here case BROTLI_STATE_UNCOMPRESSED_WRITE: { ^~~~ …/brotli/dec/decode.c: In function ‘DecodeVarLenUint8’: …/brotli/dec/decode.c:139:10: warning: this statement may fall through [-Wimplicit-fallthrough=] if (bits == 0) { ^ …/brotli/dec/decode.c:145:5: note: here case BROTLI_STATE_DECODE_UINT8_SHORT: ^~~~ …/brotli/dec/decode.c:156:14: warning: this statement may fall through [-Wimplicit-fallthrough=] value = bits; ~^~ …/brotli/dec/decode.c:159:5: note: here case BROTLI_STATE_DECODE_UINT8_LONG: ^~ …/brotli/dec/decode.c: In function ‘ReadHuffmanCode’: …/brotli/dec/decode.c:703:12: warning: this statement may fall through [-Wimplicit-fallthrough=] if (s->sub_loop_counter != 1) { ^ …/brotli/dec/decode.c:715:7: note: here case BROTLI_STATE_HUFFMAN_SIMPLE_SIZE: ^~~~ …/brotli/dec/decode.c:721:29: warning: this statement may fall through [-Wimplicit-fallthrough=] s->sub_loop_counter = 0; ^ …/brotli/dec/decode.c:723:7: note: here case BROTLI_STATE_HUFFMAN_SIMPLE_READ: { ^~ …/brotli/dec/decode.c:723:46: warning: this statement may fall through [-Wimplicit-fallthrough=] case BROTLI_STATE_HUFFMAN_SIMPLE_READ: { ^ …/brotli/dec/decode.c:731:7: note: here case BROTLI_STATE_HUFFMAN_SIMPLE_BUILD: { ^~ …/brotli/dec/decode.c:772:29: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_huffman = BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS; ^~~ …/brotli/dec/decode.c:775:7: note: here case BROTLI_STATE_HUFFMAN_LENGTH_SYMBOLS: { ^~~~ …/brotli/dec/decode.c: In function ‘DecodeContextMap’: …/brotli/dec/decode.c:949:31: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_READ_PREFIX; ^~~~~~~~~~~~~~ …/brotli/dec/decode.c:951:5: note: here case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: { ^~~~ …/brotli/dec/decode.c:951:48: warning: this statement may fall through [-Wimplicit-fallthrough=] case BROTLI_STATE_CONTEXT_MAP_READ_PREFIX: { ^ …/brotli/dec/decode.c:969:5: note: here case BROTLI_STATE_CONTEXT_MAP_HUFFMAN: ^~~~ …/brotli/dec/decode.c:974:31: warning: this statement may fall through [-Wimplicit-fallthrough=] s->substate_context_map = BROTLI_STATE_CONTEXT_MAP_DECODE; ^~~~~~~~~ …/brotli/dec/decode.c:976:5: note: here case BROTLI_STATE_CONTEXT_MAP_DECODE: { ^~~~ …/brotli/dec/decode.c:976:43: warning: this statement may fall through [-Wimplicit-fallthrough=] case BROTLI_STATE_CONTEXT_MAP_DECODE: { ^ …/brotli/dec/decode.c:1024:5: note: here case BROTLI_STATE_CONTEXT_MAP_TRANSFORM: { ^~~~ CC(target) Release/obj.target/iltorb/brotli/dec/huffman.o CC(target) Release/obj.target/iltorb/brotli/dec/state.o CC(target) Release/obj.target/iltorb/brotli/enc/backward_references.o CC(target) Release/obj.target/iltorb/brotli/enc/backward_references_hq.o CC(target) Release/obj.target/iltorb/brotli/enc/bit_cost.o CC(target) Release/obj.target/iltorb/brotli/enc/block_splitter.o In file included from …/brotli/enc/./block_splitter.h:14, from …/brotli/enc/block_splitter.c:9: …/brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorLiteral’: …/brotli/enc/./block_splitter_inc.h:403:61: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ …/brotli/enc/./block_splitter_inc.h:405:62: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] uint8_t switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ …/brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorCommand’: …/brotli/enc/./block_splitter_inc.h:403:61: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] double insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ …/brotli/enc/./block_splitter_inc.h:405:62: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] uint8_t switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ …/brotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorDistance’: …/brotli/enc/./block_splitter_inc.h:403:61: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] double insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ …/brotli/enc/./block_splitter_inc.h:405:62: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] uint8_t switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen); …/brotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ CC(target) Release/obj.target/iltorb/brotli/enc/brotli_bit_stream.o CC(target) Release/obj.target/iltorb/brotli/enc/cluster.o CC(target) Release/obj.target/iltorb/brotli/enc/compress_fragment.o CC(target) Release/obj.target/iltorb/brotli/enc/compress_fragment_two_pass.o CC(target) Release/obj.target/iltorb/brotli/enc/dictionary_hash.o CC(target) Release/obj.target/iltorb/brotli/enc/encode.o CC(target) Release/obj.target/iltorb/brotli/enc/entropy_encode.o CC(target) Release/obj.target/iltorb/brotli/enc/histogram.o CC(target) Release/obj.target/iltorb/brotli/enc/literal_cost.o CC(target) Release/obj.target/iltorb/brotli/enc/memory.o CC(target) Release/obj.target/iltorb/brotli/enc/metablock.o In file included from …/brotli/enc/././block_splitter.h:14, from …/brotli/enc/./metablock.h:14, from …/brotli/enc/metablock.c:10: …/brotli/enc/metablock.c: In function ‘ContextBlockSplitterFinishBlock’: …/brotli/enc/metablock.c:279:45: warning: ‘’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context] BROTLI_ALLOC(m, HistogramLiteral, 2 * num_contexts); …/brotli/enc/./././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’ ((N) ? ((T)BrotliAllocate((M), (N) * sizeof(T))) : NULL) ^ CC(target) Release/obj.target/iltorb/brotli/enc/static_dict.o CC(target) Release/obj.target/iltorb/brotli/enc/utf8_util.o CXX(target) Release/obj.target/iltorb/src/common/allocator.o In file included from …/src/common/allocator.cc:2: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/common/allocator.cc:2: /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/common/stream_coder.o In file included from …/src/common/stream_coder.h:5, from …/src/common/stream_coder.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/common/stream_coder.h:5, from …/src/common/stream_coder.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/dec/stream_decode.o In file included from …/src/dec/stream_decode.h:4, from …/src/dec/stream_decode.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ …/src/dec/stream_decode.cc: In constructor ‘StreamDecode::StreamDecode(v8::Localv8::Object)’: …/src/dec/stream_decode.cc:14:81: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject(); ^

In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/dec/stream_decode.h:4, from …/src/dec/stream_decode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ …/src/dec/stream_decode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamDecode::New(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/dec/stream_decode.cc:40:58: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] StreamDecode* obj = new StreamDecode(info[0]->ToObject()); ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/dec/stream_decode.h:4, from …/src/dec/stream_decode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ …/src/dec/stream_decode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamDecode::Transform(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/dec/stream_decode.cc:48:44: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Object> buffer = info[0]->ToObject(); ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/dec/stream_decode.h:4, from …/src/dec/stream_decode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/dec/stream_decode_worker.o In file included from …/src/dec/stream_decode_worker.h:4, from …/src/dec/stream_decode_worker.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ …/src/dec/stream_decode_worker.cc: In member function ‘virtual void StreamDecodeWorker::HandleOKCallback()’: …/src/dec/stream_decode_worker.cc:46:27: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] callback->Call(1, argv); ^ In file included from …/src/dec/stream_decode_worker.h:4, from …/src/dec/stream_decode_worker.cc:1: …/…/nan/nan.h:1740:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ …/src/dec/stream_decode_worker.cc:52:27: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] callback->Call(2, argv); ^ In file included from …/src/dec/stream_decode_worker.h:4, from …/src/dec/stream_decode_worker.cc:1: …/…/nan/nan.h:1740:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/dec/stream_decode_worker.h:4, from …/src/dec/stream_decode_worker.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/enc/stream_encode.o In file included from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ …/src/enc/stream_encode.cc: In constructor ‘StreamEncode::StreamEncode(v8::Localv8::Object)’: …/src/enc/stream_encode.cc:14:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] val = Nan::Get(params, key).ToLocalChecked()->Int32Value(); ^ In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26, from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED(“Use maybe version”, int32_t Int32Value() const); ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~~~~~ …/src/enc/stream_encode.cc:20:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] val = Nan::Get(params, key).ToLocalChecked()->Int32Value(); ^ In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26, from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED(“Use maybe version”, int32_t Int32Value() const); ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~~~~~ …/src/enc/stream_encode.cc:26:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] val = Nan::Get(params, key).ToLocalChecked()->Int32Value(); ^ In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26, from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED(“Use maybe version”, int32_t Int32Value() const); ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~~~~~ …/src/enc/stream_encode.cc:32:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] val = Nan::Get(params, key).ToLocalChecked()->Int32Value(); ^ In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26, from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED(“Use maybe version”, int32_t Int32Value() const); ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~~~~~ …/src/enc/stream_encode.cc:44:62: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] val = Nan::Get(params, key).ToLocalChecked()->Int32Value(); ^ In file included from /root/.node-gyp/10.16.3/include/node/v8.h:26, from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:2478:46: note: declared here V8_DEPRECATED(“Use maybe version”, int32_t Int32Value() const); ^~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~~~~~ …/src/enc/stream_encode.cc:50:81: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject(); ^

In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ …/src/enc/stream_encode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamEncode::New(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/enc/stream_encode.cc:76:58: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] StreamEncode* obj = new StreamEncode(info[0]->ToObject()); ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ …/src/enc/stream_encode.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE StreamEncode::Transform(Nan::NAN_METHOD_ARGS_TYPE)’: …/src/enc/stream_encode.cc:84:44: warning: ‘v8::Localv8::Object v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] Local<Object> buffer = info[0]->ToObject(); ^ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode.h:4, from …/src/enc/stream_encode.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h:10046:15: note: declared here Local<Object> Value::ToObject() const { ^~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/enc/stream_encode_worker.o In file included from …/src/enc/stream_encode_worker.h:4, from …/src/enc/stream_encode_worker.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ …/src/enc/stream_encode_worker.cc: In member function ‘virtual void StreamEncodeWorker::HandleOKCallback()’: …/src/enc/stream_encode_worker.cc:47:27: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] callback->Call(1, argv); ^ In file included from …/src/enc/stream_encode_worker.h:4, from …/src/enc/stream_encode_worker.cc:1: …/…/nan/nan.h:1740:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ …/src/enc/stream_encode_worker.cc:53:27: warning: ‘v8::Localv8::Value Nan::Callback::Call(int, v8::Localv8::Value) const’ is deprecated [-Wdeprecated-declarations] callback->Call(2, argv); ^ In file included from …/src/enc/stream_encode_worker.h:4, from …/src/enc/stream_encode_worker.cc:1: …/…/nan/nan.h:1740:3: note: declared here Call(int argc, v8::Localv8::Value argv[]) const { ^~~~ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/enc/stream_encode_worker.h:4, from …/src/enc/stream_encode_worker.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] CXX(target) Release/obj.target/iltorb/src/iltorb.o In file included from …/src/iltorb.cc:1: …/…/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: …/…/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ In file included from …/…/nan/nan.h:54, from …/src/iltorb.cc:1: …/src/iltorb.cc: At global scope: /root/.node-gyp/10.16.3/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc),
^ /root/.node-gyp/10.16.3/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~ …/src/iltorb.cc:12:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(iltorb, Init) ^~~~~~~~~~~ In file included from /root/.node-gyp/10.16.3/include/node/node.h:63, from …/…/nan/nan.h:54, from …/src/iltorb.cc:1: /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]’: /root/.node-gyp/10.16.3/include/node/node_object_wrap.h:84:78: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfonode::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfonode::ObjectWrap&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.node-gyp/10.16.3/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]’: …/…/nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/10.16.3/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfoNan::ObjectWrap::Callback’ {aka ‘void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] SOLINK_MODULE(target) Release/obj.target/iltorb.node COPY Release/iltorb.node COPY …/build/bindings/iltorb.node TOUCH Release/obj.target/action_after_build.stamp make: Leaving directory ‘/opt/juice-shop/node_modules/iltorb/build’

libxmljs2@0.21.4 install /opt/juice-shop/node_modules/libxmljs2 node-pre-gyp install --fallback-to-build --loglevel http

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp http GET https://github.com/marudor/libxmljs2/releases/download/v0.21.4/node-v64-linux-x64-glibc.tar.gz node-pre-gyp http 200 https://github.com/marudor/libxmljs2/releases/download/v0.21.4/node-v64-linux-x64-glibc.tar.gz [libxmljs2] Success: “/opt/juice-shop/node_modules/libxmljs2/build/Release/xmljs.node” is installed via remote

sqlite3@4.1.0 install /opt/juice-shop/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download [sqlite3] Success: “/opt/juice-shop/node_modules/sqlite3/lib/binding/node-v64-linux-x64/node_sqlite3.node” is installed via remote

core-js@2.6.9 postinstall /opt/juice-shop/node_modules/core-js node scripts/postinstall || echo “ignore”

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

https://opencollective.com/core-js https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

funding@1.0.8 postinstall /opt/juice-shop/node_modules/funding node bin/funding.js

npm WARN lifecycle juice-shop@9.0.0~postinstall: cannot run in wd juice-shop@9.0.0 cd frontend && npm install && cd … && npm run build (wd=/opt/juice-shop) npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN acorn-jsx@5.0.2 requires a peer of acorn@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})

added 1414 packages from 1702 contributors and audited 881258 packages in 62.183s found 11 vulnerabilities (2 low, 5 moderate, 3 high, 1 critical) run npm audit fix to fix them, or npm audit for details`

then ran

npm audit fix --foce npm start

npm WARN lifecycle juice-shop@9.0.0~postinstall: cannot run in wd juice-shop@9.0.0 cd frontend && npm install && cd .. && npm run build (wd=/opt/juice-shop)

any idea what is wrong ?

Regards

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tehseensagarcommented, Aug 29, 2019

Issue has been identifies 😃 . if any one wants to setup juice-shop repository use it at your risk . nmp / node.js does not allowed to install packages as root due to its own structure.

Solution as root user Installation although not recomended

Install node.js in your system if not already installed git clone https://github.com/bkimminich/juice-shop.git cd juice-shop npm install --unsafe-perm=true --allow-root npm start

Browse to http://localhost:3000

0reactions
github-actions[bot]commented, Jun 22, 2022

This thread has been automatically locked because it has not had recent activity after it was closed. 🔒 Please open a new issue for regressions or related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Bunch of erros on fresh installation via source ...
it worked with out any issue. Before that I logged in as root user and working directory was "/opt/juice-shop" and I got above...
Read more >
How to fix npm throwing error without sudo - node.js
Solution 2: Install packages globally for a given user. Don't hack with permissions, install npm packages globally the right way. If you are...
Read more >
Express/Node introduction - Learn web development | MDN
js ) is an open-source, cross-platform runtime environment that allows developers to create all kinds of server-side tools and applications in ...
Read more >
Path | Node.js v19.3.0 Documentation
Source Code: lib/path.js. The node:path module provides utilities for working with file and directory paths. It can be accessed using:
Read more >
Debug Node.js Apps using Visual Studio Code
The Visual Studio Code editor includes Node.js debugging support. Set breakpoints, step-in, inspect variables and more.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found