Fresh local install not working
If reporting a bug:
-
Can you describe the problem and bug in more detail? Can't install locally using the instructions from GETTING-STARTED.md.
-
How can we replicate the issue? clone the repo and try to follow the instructions and install. Some dependencies from package.json aren't supported with the mentioned node version 10.x. When using a supported node version (>12.x), make fails with gyp ERR! stack Error:
makefailed with exit code: 2 -
Expected behavior (i.e. solution) Should be able to install following the detailed instructions
-
Error stack (from extension crash page) warning Error running install script for optional dependency: "/Users/jamalavedra/projects/Memex/node_modules/fsevents: Command failed. Exit code: 1 Command: node install Arguments: Directory: /Users/jamalavedra/projects/Memex/node_modules/fsevents Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using [email protected] node-pre-gyp info using [email protected] | darwin | arm64 node-pre-gyp info check checked for "/Users/jamalavedra/projects/Memex/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64/fse.node" (not found) node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v83-darwin-arm64.tar.gz node-pre-gyp http 403 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v83-darwin-arm64.tar.gz node-pre-gyp WARN Tried to download(403): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v83-darwin-arm64.tar.gz node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 403 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.4/fse-v1.2.4-node-v83-darwin-arm64.tar.gz gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | darwin | arm64 gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | darwin | arm64 gyp info find Python using Python version 3.9.10 found at "/opt/homebrew/opt/[email protected]/bin/python3.9" gyp info spawn /opt/homebrew/opt/[email protected]/bin/python3.9 gyp info spawn args [ gyp info spawn args '/Users/jamalavedra/projects/Memex/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Users/jamalavedra/projects/Memex/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/jamalavedra/projects/Memex/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/jamalavedra/Library/Caches/node-gyp/14.18.2', gyp info spawn args '-Dnode_gyp_dir=/Users/jamalavedra/projects/Memex/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/jamalavedra/Library/Caches/node-gyp/14.18.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/jamalavedra/projects/Memex/node_modules/fsevents', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | darwin | arm64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:202: In file included from ../../nan/nan_converters.h:67: ../../nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Localv8::Context' to 'v8::Isolate ' X(Boolean) ^~~~~~~~~~ ../../nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X' val->To ## TYPE(isolate->GetCurrentContext()) \\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:2848:37: note: passing argument to parameter 'isolate' here Local<Boolean> ToBoolean(Isolate isolate) const; ^ In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:202: In file included from ../../nan/nan_converters.h:67: ../../nan/nan_converters_43_inl.h:22:1: error: no member named 'FromMaybe' in 'v8::Localv8::Boolean' X(Boolean) ^~~~~~~~~~ ../../nan/nan_converters_43_inl.h:19:12: note: expanded from macro 'X' .FromMaybe(v8::Localv8::TYPE())); \\n ^ ../../nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Localv8::Context' to 'v8::Isolate ' X(bool, Boolean) ^~~~~~~~~~~~~~~~ ../../nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X' return val->NAME ## Value(isolate->GetCurrentContext()); \\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:2858:30: note: passing argument to parameter 'isolate' here bool BooleanValue(Isolate isolate) const; ^ In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:202: In file included from ../../nan/nan_converters.h:67: ../../nan/nan_converters_43_inl.h:40:1: error: no viable conversion from returned value of type 'bool' to function return type 'imp::ToFactory
::return_t' (aka 'Maybe ') X(bool, Boolean) ^~~~~~~~~~~~~~~~ ../../nan/nan_converters_43_inl.h:37:10: note: expanded from macro 'X' return val->NAME ## Value(isolate->GetCurrentContext()); \\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:9968:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'bool' to 'const v8::Maybe &' for 1st argument class Maybe { ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:9968:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'bool' to 'v8::Maybe &&' for 1st argument /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:10023:12: note: explicit constructor is not a candidate explicit Maybe(const T& t) : has_value_(true), value_(t) {} ^ In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:203: In file included from ../../nan/nan_new.h:189: ../../nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Localv8::Context' return scope.Escape(v8::Function::New( isolate ^~~~~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:190:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate ' to 'const v8::Localv8::Context &' for 1st argument class Local { ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:190:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate ' to 'v8::Localv8::Context &&' for 1st argument /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:194:13: note: candidate template ignored: could not match 'Local ' against 'v8::Isolate ' V8_INLINE Local(Local<S> that) ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:337:22: note: explicit constructor is not a candidate explicit V8_INLINE Local(T that) : val_(that) {} ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:4446:22: note: passing argument to parameter 'context' here Local<Context> context, FunctionCallback callback, ^ In file included from ../fsevents.cc:6: In file included from ../../nan/nan.h:203: In file included from ../../nan/nan_new.h:189: ../../nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1 return v8::StringObject::New(value).Asv8::StringObject(); ~~~~~~~~~~~~~~~~~~~~~ ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:5854:23: note: 'New' declared here static Local<Value> New(Isolate isolate, Local<String> value); ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified v8::Localv8::String string = from->ToString(); ~~~~~~~~~~~~~~ ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:2810:44: note: 'ToString' declared here V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:1034:29: error: no viable conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String' v8::Localv8::String string = from->ToString(); ^ ~~~~~~~~~~~~~~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:190:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocalv8::String' to 'const v8::Localv8::String &' for 1st argument class Local { ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:190:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocalv8::String' to 'v8::Localv8::String &&' for 1st argument /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:194:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal' V8_INLINE Local(Local<S> that) ^ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:337:22: note: explicit constructor is not a candidate explicit V8_INLINE Local(T that) : val_(that) {} ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate ' with an lvalue of type 'char ' length_ = string->WriteUtf8(str_, static_cast(len), 0, flags); ^~~~ /Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:3037:26: note: passing argument to parameter 'isolate' here int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^ In file included from ../fsevents.cc:6: ../../nan/nan.h:1818:28: error: no matching member function for call to 'Set' New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
/Users/jamalavedra/Library/Caches/node-gyp/14.18.2/include/node/v8.h:3670:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
V8_WARN_UNUSED_RESULT Maybe
define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
^
../fsevents.cc:50:32: error: no template named 'Handle' in namespace 'v8'
static void Initialize(v8::Handlev8::Object exports);
~~~~^
../fsevents.cc:63:6: warning: field 'async_resource' will be initialized after field 'lockStarted' [-Wreorder-ctor]
: async_resource("fsevents:FSEvents"), lockStarted(false) {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
2 warnings and 20 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/jamalavedra/projects/Memex/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:400:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:282:12)
gyp ERR! System Darwin 21.2.0
gyp ERR! command "/Users/jamalavedra/.nvm/versions/node/v14.18.2/bin/node" "/Users/jamalavedra/projects/Memex/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/jamalavedra/projects/Memex/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64/fse.node" "--module_name=fse" "--module_path=/Users/jamalavedra/projects/Memex/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64" "--napi_version=8" "--node_abi_napi=napi"
gyp ERR! cwd /Users/jamalavedra/projects/Memex/node_modules/fsevents
gyp ERR! node -v v14.18.2
gyp ERR! node-gyp -v v8.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/jamalavedra/.nvm/versions/node/v14.18.2/bin/node /Users/jamalavedra/projects/Memex/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/jamalavedra/projects/Memex/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64/fse.node --module_name=fse --module_path=/Users/jamalavedra/projects/Memex/node_modules/fsevents/lib/binding/Release/node-v83-darwin-arm64 --napi_version=8 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.
Thanks @jamalavedra!
This is currently expected to fail because we have not made one of the core libraries public yet. We have on the map to public and the private parts out, but haven't gotten to it thus far. We have a couple of high importance feature updates on the horizon and hopefully get to that soon after.
I'll have to update the docs.
Thanks!
Understood, thanks! Is there a version from the repo that works with the current dependencies?
I am afraid that is a long time ago! Is there anything specific you want to achieve and I can help you with?
Maybe we can hack around it somehow, but helpful to understand where you want to go with it?
That'd be cool!
I was just trying to get it working in my system out of curiosity.