ssbc / patchbay

An alternative Secure Scuttlebutt client interface that is fully compatible with Patchwork
http://www.scuttlebutt.nz
388 stars 78 forks source link

Difficulties in doing npm install #353

Closed staltz closed 5 years ago

staltz commented 5 years ago

If I use node v8.12.0 / npm 6.9.0, I get this npm install error:

CLICK HERE ``` > electron@4.2.6 postinstall /home/staltz/oss/patchbay/node_modules/electron > node install.js Downloading tmp-5770-1-SHASUMS256.txt-4.2.6 [============================================>] 100.0% of 4.74 kB (4.74 kB/s) > patchbay@8.1.0 postinstall /home/staltz/oss/patchbay > npm run rebuild > patchbay@8.1.0 rebuild /home/staltz/oss/patchbay > electron-builder install-app-deps • electron-builder version=20.44.4 • loaded configuration file=package.json ("build" field) • rebuilding native production dependencies platform=linux arch=x64 Error: /home/staltz/.nvm/versions/node/v8.12.0/bin/node exited with code 1 Output: > @paulcbetts/cld@2.4.6 install /home/staltz/oss/patchbay/node_modules/@paulcbetts/cld > prebuild-install || node-gyp rebuild make: Entering directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/cld/build' CXX(target) Release/obj.target/cld-c/deps/cld/internal/cldutil.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cldutil_shared.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/compact_lang_det.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_hint_code.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/compact_lang_det_impl.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/debug.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/fixunicodevalue.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/generated_entities.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/generated_language.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/generated_ulscript.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/getonescriptspan.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/lang_script.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/offsetmap.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/scoreonescriptspan.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/tote.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/utf8statetable.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_uni_prop_80.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_cjk_compatible.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_cjk_delta_bi_32.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/generated_distinct_bi_0.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quad0122.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_deltaocta0122.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_deltaoctachrome.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_distinctocta0122.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_distinctoctachrome.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quadchrome_16.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld2_generated_quadchrome_2.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_score_quad_octa_0122.o CXX(target) Release/obj.target/cld-c/deps/cld/internal/cld_generated_score_quad_octa_2.o AR(target) Release/obj.target/deps/cld/cld-c.a COPY Release/cld-c.a CXX(target) Release/obj.target/cld/src/constants.o CXX(target) Release/obj.target/cld/src/cld.o SOLINK_MODULE(target) Release/obj.target/cld.node COPY Release/cld.node make: Leaving directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/cld/build' > @paulcbetts/cld@2.4.6 postinstall /home/staltz/oss/patchbay/node_modules/@paulcbetts/cld > node bin/postinstall.js > @paulcbetts/spellchecker@4.0.6 install /home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker > prebuild-install || node-gyp rebuild make: Entering directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker/build' CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/md5.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/strings/string_piece.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/google/bdict_reader.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/google/bdict.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affentry.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affixmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/csutil.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/dictmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/filemgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hashmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunspell.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunzip.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/phonet.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/replist.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/suggestmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/parsers/textparser.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/strings/string16.o AR(target) Release/obj.target/hunspell.a COPY Release/hunspell.a CXX(target) Release/obj.target/spellchecker/src/main.o CXX(target) Release/obj.target/spellchecker/src/spellchecker_hunspell.o CXX(target) Release/obj.target/spellchecker/src/spellchecker_linux.o CXX(target) Release/obj.target/spellchecker/src/transcoder_posix.o SOLINK_MODULE(target) Release/obj.target/spellchecker.node COPY Release/spellchecker.node make: Leaving directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker/build' > keyboard-layout@2.0.13 install /home/staltz/oss/patchbay/node_modules/keyboard-layout > prebuild-install || node-gyp rebuild make: Entering directory '/home/staltz/oss/patchbay/node_modules/keyboard-layout/build' CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o keyboard-layout-manager.target.mk:103: recipe for target 'Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o' failed make: Leaving directory '/home/staltz/oss/patchbay/node_modules/keyboard-layout/build' Error output: prebuild-install WARN install No prebuilt binaries found (target=4.2.6 runtime=electron arch=x64 platform=linux) ../src/cld.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE NodeCld::Detect(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/cld.cc:14:51: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value text(info[0]->ToString()); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/cld.cc:8: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/cld.cc:26:59: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value languageHint(info[2]->ToString()); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/cld.cc:8: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/cld.cc:27:59: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value encodingHint(info[3]->ToString()); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/cld.cc:8: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/cld.cc:28:54: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value tldHint(info[4]->ToString()); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/cld.cc:8: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/cld.cc:29:55: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] v8::String::Utf8Value httpHint(info[5]->ToString()); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/cld.cc:8: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ prebuild-install WARN install No prebuilt binaries found (target=4.2.6 runtime=electron arch=x64 platform=linux) ../vendor/hunspell/src/google/bdict_reader.cc: In member function ‘bool hunspell::LineIterator::AdvanceAndCopy(char*, size_t)’: ../vendor/hunspell/src/google/bdict_reader.cc:670:15: warning: unused variable ‘begin’ [-Wunused-variable] const char* begin = reinterpret_cast(&bdict_data_[cur_offset_]); ^~~~~ In file included from ../vendor/hunspell/src/hunspell/affentry.cxx:9:0: ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int PfxEntry::test_condition(const char*)’: ../vendor/hunspell/src/hunspell/affentry.cxx:113:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case '.': if (!pos) { // dots are not metacharacters in groups: [.] ^~ ../vendor/hunspell/src/hunspell/affentry.cxx:120:5: note: here default: { ^~~~~~~ ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int SfxEntry::test_condition(const char*, const char*)’: ../vendor/hunspell/src/hunspell/affentry.cxx:503:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case '.': if (!pos) { // dots are not metacharacters in groups: [.] ^~ ../vendor/hunspell/src/hunspell/affentry.cxx:518:5: note: here default: { ^~~~~~~ In file included from ../vendor/hunspell/src/hunspell/affixmgr.cxx:12:0: ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/dictmgr.cxx: In member function ‘int DictMgr::parse_file(const char*, const char*)’: ../vendor/hunspell/src/hunspell/dictmgr.cxx:102:37: warning: this statement may fall through [-Wimplicit-fallthrough=] pdict->region=NULL; ^ ../vendor/hunspell/src/hunspell/dictmgr.cxx:103:21: note: here case 2: //deliberate fallthrough ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::spell(const char*, int*, char**)’: ../vendor/hunspell/src/hunspell/hunspell.cxx:404:19: warning: this statement may fall through [-Wimplicit-fallthrough=] *info += SPELL_ORIGCAP; ../vendor/hunspell/src/hunspell/hunspell.cxx:405:6: note: here case NOCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:474:13: warning: this statement may fall through [-Wimplicit-fallthrough=] } ^ ../vendor/hunspell/src/hunspell/hunspell.cxx:476:6: note: here case INITCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::suggest(char***, const char*)’: ../vendor/hunspell/src/hunspell/hunspell.cxx:786:30: warning: this statement may fall through [-Wimplicit-fallthrough=] capwords = 1; ~~~~~~~~~^~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:787:6: note: here case HUHCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:910:24: warning: this statement may fall through [-Wimplicit-fallthrough=] capwords = 1; ~~~~~~~~~^~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:911:11: note: here case HUHCAP: { ^~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::SetDictionary(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:43:54: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string language = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::IsMisspelled(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:64:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::Add(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:112:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::Remove(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:125:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetAvailableDictionaries(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:139:52: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string path = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetCorrectionsForMisspelling(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:162:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:26:0, from /home/staltz/.electron-gyp/4.2.6/include/node/node.h:67, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.electron-gyp/4.2.6/include/node/v8.h:3007:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.electron-gyp/4.2.6/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ prebuild-install WARN install No prebuilt binaries found (target=4.2.6 runtime=electron arch=x64 platform=linux) ../src/keyboard-layout-manager-linux.cc:5:10: fatal error: X11/extensions/XKBrules.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/staltz/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 4.15.0-54-generic gyp ERR! command "/home/staltz/.nvm/versions/node/v8.12.0/bin/node" "/home/staltz/.nvm/versions/node/v8.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/staltz/oss/patchbay/node_modules/keyboard-layout gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! keyboard-layout@2.0.13 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the keyboard-layout@2.0.13 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! /home/staltz/.npm/_logs/2019-07-18T09_51_43_486Z-debug.log at ChildProcess.childProcess.once.code (/home/staltz/oss/patchbay/node_modules/builder-util/src/util.ts:244:14) at Object.onceWrapper (events.js:317:30) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:915:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) From previous event: at _rebuild (/home/staltz/oss/patchbay/node_modules/app-builder-lib/src/util/yarn.ts:179:5) at rebuild (/home/staltz/oss/patchbay/node_modules/app-builder-lib/out/util/yarn.js:163:19) at /home/staltz/oss/patchbay/node_modules/app-builder-lib/src/util/yarn.ts:20:11 From previous event: at _installOrRebuild (/home/staltz/oss/patchbay/node_modules/app-builder-lib/out/util/yarn.js:71:28) at installOrRebuild (/home/staltz/oss/patchbay/node_modules/app-builder-lib/out/util/yarn.js:55:28) at /home/staltz/oss/patchbay/node_modules/electron-builder/src/cli/install-app-deps.ts:58:9 at Generator.next () at runCallback (timers.js:810:20) at tryOnImmediate (timers.js:768:5) at processImmediate [as _immediateCallback] (timers.js:745:5) From previous event: at _installAppDeps (/home/staltz/oss/patchbay/node_modules/electron-builder/out/cli/install-app-deps.js:177:26) at installAppDeps (/home/staltz/oss/patchbay/node_modules/electron-builder/out/cli/install-app-deps.js:146:26) at then (/home/staltz/oss/patchbay/node_modules/electron-builder/src/cli/cli.ts:49:19) at ```

If I use node v10.15.3 / npm 6.4.1, I get this npm install error:

CLICK HERE ``` > fd-lock@1.0.2 install /home/staltz/oss/patchbay/node_modules/fd-lock > node-gyp-build > sodium-native@2.4.2 install /home/staltz/oss/patchbay/node_modules/sodium-native > node-gyp-build "node preinstall.js" "node postinstall.js" > sodium-native@2.4.2 install /home/staltz/oss/patchbay/node_modules/ssb-server/node_modules/sodium-native > node-gyp-build "node preinstall.js" "node postinstall.js" > leveldown@5.1.0 install /home/staltz/oss/patchbay/node_modules/ssb-server/node_modules/leveldown > node-gyp-build > utp-native@1.7.3 install /home/staltz/oss/patchbay/node_modules/utp-native > node-gyp-build > leveldown@5.1.1 install /home/staltz/oss/patchbay/node_modules/leveldown > node-gyp-build > @paulcbetts/cld@github:ssbc/paulcbetts-cld-prebuilt#63609a21577c9c44229f16c0f42cf13322035718 install /home/staltz/oss/patchbay/node_modules/@paulcbetts/cld > prebuild-install || node-gyp rebuild > @paulcbetts/spellchecker@github:ssbc/paulcbetts-spellchecker-prebuilt#8e28e43d81073b354e7811792b9a39132db52221 install /home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker > prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=10.15.3 runtime=node arch=x64 platform=linux) make: Entering directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker/build' CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/md5.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/strings/string_piece.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/google/bdict_reader.o ../vendor/hunspell/src/google/bdict_reader.cc: In member function ‘bool hunspell::LineIterator::AdvanceAndCopy(char*, size_t)’: ../vendor/hunspell/src/google/bdict_reader.cc:670:15: warning: unused variable ‘begin’ [-Wunused-variable] const char* begin = reinterpret_cast(&bdict_data_[cur_offset_]); ^~~~~ CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/google/bdict.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affentry.o In file included from ../vendor/hunspell/src/hunspell/affentry.cxx:9:0: ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int PfxEntry::test_condition(const char*)’: ../vendor/hunspell/src/hunspell/affentry.cxx:113:20: warning: this statement may fall through [-Wimplicit-fallthrough=] case '.': if (!pos) { // dots are not metacharacters in groups: [.] ^~ ../vendor/hunspell/src/hunspell/affentry.cxx:120:5: note: here default: { ^~~~~~~ ../vendor/hunspell/src/hunspell/affentry.cxx: In member function ‘int SfxEntry::test_condition(const char*, const char*)’: ../vendor/hunspell/src/hunspell/affentry.cxx:503:19: warning: this statement may fall through [-Wimplicit-fallthrough=] case '.': if (!pos) { // dots are not metacharacters in groups: [.] ^~ ../vendor/hunspell/src/hunspell/affentry.cxx:518:5: note: here default: { ^~~~~~~ CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/affixmgr.o In file included from ../vendor/hunspell/src/hunspell/affixmgr.cxx:12:0: ../vendor/hunspell/src/hunspell/affentry.hxx:30:105: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, char in_compound, const FLAG needflag = NULL); ^~~~ ../vendor/hunspell/src/hunspell/affentry.hxx:93:114: warning: converting to non-pointer type ‘short unsigned int’ from NULL [-Wconversion-null] struct hentry * check_twosfx(const char * word, int len, int optflags, PfxEntry* ppfx, const FLAG needflag = NULL); ^~~~ CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/csutil.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/dictmgr.o ../vendor/hunspell/src/hunspell/dictmgr.cxx: In member function ‘int DictMgr::parse_file(const char*, const char*)’: ../vendor/hunspell/src/hunspell/dictmgr.cxx:102:37: warning: this statement may fall through [-Wimplicit-fallthrough=] pdict->region=NULL; ^ ../vendor/hunspell/src/hunspell/dictmgr.cxx:103:21: note: here case 2: //deliberate fallthrough ^~~~ CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/filemgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hashmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunspell.o ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::spell(const char*, int*, char**)’: ../vendor/hunspell/src/hunspell/hunspell.cxx:404:19: warning: this statement may fall through [-Wimplicit-fallthrough=] *info += SPELL_ORIGCAP; ../vendor/hunspell/src/hunspell/hunspell.cxx:405:6: note: here case NOCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:474:13: warning: this statement may fall through [-Wimplicit-fallthrough=] } ^ ../vendor/hunspell/src/hunspell/hunspell.cxx:476:6: note: here case INITCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx: In member function ‘int Hunspell::suggest(char***, const char*)’: ../vendor/hunspell/src/hunspell/hunspell.cxx:786:30: warning: this statement may fall through [-Wimplicit-fallthrough=] capwords = 1; ~~~~~~~~~^~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:787:6: note: here case HUHCAP: { ^~~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:910:24: warning: this statement may fall through [-Wimplicit-fallthrough=] capwords = 1; ~~~~~~~~~^~~ ../vendor/hunspell/src/hunspell/hunspell.cxx:911:11: note: here case HUHCAP: { ^~~~ CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/hunzip.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/phonet.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/replist.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/hunspell/suggestmgr.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/parsers/textparser.o CXX(target) Release/obj.target/hunspell/vendor/hunspell/src/base/strings/string16.o AR(target) Release/obj.target/hunspell.a COPY Release/hunspell.a CXX(target) Release/obj.target/spellchecker/src/main.o ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::SetDictionary(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:43:54: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string language = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::IsMisspelled(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:64:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::Add(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:112:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::Remove(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:125:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetAvailableDictionaries(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:139:52: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string path = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../src/main.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE {anonymous}::Spellchecker::GetCorrectionsForMisspelling(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/main.cc:162:50: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local)’ is deprecated: Use Isolate version [-Wdeprecated-declarations] std::string word = *String::Utf8Value(info[0]); ^ In file included from /home/staltz/.node-gyp/10.15.3/include/node/v8.h:26:0, from /home/staltz/.node-gyp/10.15.3/include/node/node.h:63, from ../../../nan/nan.h:54, from ../src/main.cc:2: /home/staltz/.node-gyp/10.15.3/include/node/v8.h:2892:28: note: declared here explicit Utf8Value(Local obj)); ^ /home/staltz/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’ declarator __attribute__((deprecated(message))) ^~~~~~~~~~ CXX(target) Release/obj.target/spellchecker/src/spellchecker_hunspell.o CXX(target) Release/obj.target/spellchecker/src/spellchecker_linux.o CXX(target) Release/obj.target/spellchecker/src/transcoder_posix.o SOLINK_MODULE(target) Release/obj.target/spellchecker.node COPY Release/spellchecker.node make: Leaving directory '/home/staltz/oss/patchbay/node_modules/@paulcbetts/spellchecker/build' > keyboard-layout@github:ssbc/keyboard-layout#328d41c279a0c1ab07eecba514fcca129b7e40a6 install /home/staltz/oss/patchbay/node_modules/keyboard-layout > prebuild-install || node-gyp rebuild prebuild-install WARN install No prebuilt binaries found (target=10.15.3 runtime=node arch=x64 platform=linux) make: Entering directory '/home/staltz/oss/patchbay/node_modules/keyboard-layout/build' CXX(target) Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o ../src/keyboard-layout-manager-linux.cc:5:10: fatal error: X11/extensions/XKBrules.h: No such file or directory #include ^~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. keyboard-layout-manager.target.mk:103: recipe for target 'Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o' failed make: *** [Release/obj.target/keyboard-layout-manager/src/keyboard-layout-manager-linux.o] Error 1 make: Leaving directory '/home/staltz/oss/patchbay/node_modules/keyboard-layout/build' ```

Which engine versions should I use, and could we consider specifying these in package.json > "engines"?

staltz commented 5 years ago

Nevermind, I forgot to read the readme entirely

christianlupus commented 4 years ago

@staltz I am not sure if I am running into the very same problem. Can you tell me what solved your problem? Which readme did you not read entirely? This one?

Thanks

staltz commented 4 years ago

Yes the patchbay readme.

Note that an npm install problem I had in July 18 2019 might not be the same npm install problem you have in Jan 16 2020.

Open another issue and describe your case in details, for instance.