elegantthemes / create-divi-extension

MIT License
185 stars 59 forks source link

Build errors when running: npx create-divi-extension my-extension #377

Closed TohoMonster closed 4 years ago

TohoMonster commented 4 years ago

Problem Description

Build errors when running "npx create-divi-extension my-extension" as detailed on https://www.elegantthemes.com/documentation/developers/create-divi-extension/.

The issue seems to be with

I have verified that I am using the latest versions of node.js, yaml, and XCode.

Steps To Reproduce

  1. Follow instructions for a Docker module on: https://www.elegantthemes.com/documentation/developers/divi-development-environment/
  2. Run "npx create-divi-extension my-extension" as in https://www.elegantthemes.com/documentation/developers/create-divi-extension/

The error seems to be coming from the fsevents module.

I tried opening an issue on www.elegantthemes.com but was told to open an issue here.

What is the expected time for resolution on issues here?

Screenshot and/or gif

Here is the output of the

Last login: Sat Jun 27 08:35:51 on console

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050.

Johns-MacBook-Pro:BlankWordpress john$ cd wp-content/plugins/

npx: installed 174 in 7.167s warning divi-scripts > extract-text-webpack-plugin@3.0.2: Deprecated. Please use https://github.com/webpack-contrib/mini-css-extract-plugin warning divi-scripts > fsevents@1.1.3: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > @babel/runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning divi-scripts > autoprefixer > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > divi-dev-utils > browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > grunt-contrib-compress > iltorb@1.3.10: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb warning divi-scripts > webpack-dev-server > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning divi-scripts > webpack-dev-server > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > fsevents > node-pre-gyp > request@2.81.0: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > grunt-contrib-compress > iltorb > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > fsevents > node-pre-gyp > hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > fsevents > node-pre-gyp > request > hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. warning divi-scripts > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning divi-scripts > eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor. warning divi-scripts > jest > jest-cli > jest-haste-map > sane > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. warning divi-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > svgr > h2x-core > h2x-parse > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning divi-scripts > jest > jest-cli > jest-runtime > babel-core > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning divi-scripts > jest > jest-cli > jest-runtime > babel-core > babel-register > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. warning divi-scripts > fsevents > node-pre-gyp > hawk > hoek@2.16.3: 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). warning divi-scripts > fsevents > node-pre-gyp > hawk > sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. warning divi-scripts > fsevents > node-pre-gyp > hawk > sntp > hoek@2.16.3: 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). warning divi-scripts > fsevents > node-pre-gyp > hawk > cryptiles@2.0.5: 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). warning divi-scripts > fsevents > node-pre-gyp > hawk > boom@2.10.1: 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). warning divi-scripts > fsevents > node-pre-gyp > hawk > cryptiles > boom@2.10.1: 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). warning divi-scripts > fsevents > node-pre-gyp > hawk > boom > hoek@2.16.3: 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). warning divi-scripts > jest > jest-cli > jest-environment-jsdom > jsdom > left-pad@1.3.0: use String.prototype.padStart() warning divi-scripts > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning divi-scripts > webpack-dev-server > chokidar > braces > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning "divi-scripts > babel-plugin-named-asset-import@1.0.0-next.fb6e6f70" has incorrect peer dependency "@babel/core@^7.1.0". warning "divi-scripts > babel-preset-divi-extension > babel-plugin-transform-dynamic-import > @babel/plugin-syntax-dynamic-import@7.0.0-beta.34" has incorrect peer dependency "@babel/core@7.0.0-beta.34". warning Error running install script for optional dependency: "/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents: Command failed. Exit code: 1 Command: node install Arguments: Directory: /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.6.39 node-pre-gyp info using node@12.18.2 | darwin | x64 node-pre-gyp info check checked for \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" (not found) node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@12.18.2 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v72-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@12.18.2 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http Connection closed while downloading tarball file gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gypgyp infoinfo okok

gyp info it worked if it ends with ok gypgyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info spawn /usr/bin/python gyp info spawn /usr/bin/python gyp info spawn args [ gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/gyp/gyp_main.py', gypgyp info spawn args [ gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/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/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/john/.node-gyp/12.18.2/include/node/common.gypi', gyp info info spawn args '-I', gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/addon.gypi', gyp info spawn argsspawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/Users/john/.node-gyp/12.18.2', gyp info spawn args '-Dnode_gyp_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/john/.node-gyp/12.18.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/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 ] '-I', gyp info spawn args '/Users/john/.node-gyp/12.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/john/.node-gyp/12.18.2', gyp info spawn args '-Dnode_gyp_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/Users/john/.node-gyp/12.18.2/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/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 node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] gyp info ok SOLINK_MODULE(target) Release/.node gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@12.18.2 | darwin | x64 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 CXX(target) Release/obj.target/fse/fsevents.o ../fsevents.cc../fsevents.cc:50:50:32:: error: no template named 'Handle' in namespace 'v8'32 : error: no template named 'Handle' in namespace 'v8' static void Initialize(v8::Handle exports);


    static void Initialize(v8::Handle<v8::Object> exports);
                           ~~~~^
In file included from In file included from ../fsevents.cc:84../fsevents.cc::
84:
../src/constants.cc../src/constants.cc:89:11:: warning89:11: : 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagNone\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagNone));
          ^
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagNone\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagNone));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3  V8_DEPRECATED(\"Use maybe version\",
  ^
:/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
 note: 'Set' has been explicitly marked deprecated here
  declarator __attribute__((deprecated(message)))
                            ^
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:90:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagMustScanSubDirs\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagMustScanSubDirs));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:90:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagMustScanSubDirs\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagMustScanSubDirs));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))In file included from ../fsevents.cc:84:

                            ^
../src/constants.cc:91:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagUserDropped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagUserDropped));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:91:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagUserDropped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagUserDropped));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
In file included from ../fsevents.cc  V8_DEPRECATED(\"Use maybe version\",
  ^:
84:
../src/constants.cc:92:11/Users/john/.node-gyp/12.18.2/include/node/v8config.h:: warning: 328:'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]29: 
note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagKernelDropped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagKernelDropped));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:92:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
In file included from ../fsevents.cc:84:
../src/constants.cc:93:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagKernelDropped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagKernelDropped));
          ^

/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagEventIdsWrapped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagEventIdsWrapped));
          ^
  V8_DEPRECATED(\"Use maybe version\",
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:  ^
3: note: 'Set' has been explicitly marked deprecated here/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328
:29: note: expanded from macro 'V8_DEPRECATED'
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29:  declarator __attribute__((deprecated(message)))
                            ^ note: 
expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:93:11In file included from : warning: ../fsevents.cc'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]:
84:
../src/constants.cc:94:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagEventIdsWrapped\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagEventIdsWrapped));  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagHistoryDone\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagHistoryDone));
          ^

          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:/Users/john/.node-gyp/12.18.2/include/node/v8.h3: :3498note:: 3'Set' has been explicitly marked deprecated here
: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  V8_DEPRECATED(\"Use maybe version\",  ^

  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: /Users/john/.node-gyp/12.18.2/include/node/v8config.h:expanded from macro 'V8_DEPRECATED'
328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))  declarator __attribute__((deprecated(message)))
                            ^

                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:95:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
In file included from ../fsevents.cc:84:
../src/constants.cc:94:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagRootChanged\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagRootChanged));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note:   object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagHistoryDone\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagHistoryDone));'Set' has been explicitly marked deprecated here

          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note  V8_DEPRECATED(\"Use maybe version\",
: 'Set' has been explicitly marked deprecated here
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note  V8_DEPRECATED(\"Use maybe version\",
:   ^expanded from macro 'V8_DEPRECATED'

/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:95:11: In file included from ../fsevents.cc:84:
../src/constants.ccwarning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
:96:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagRootChanged\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagRootChanged));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagMount\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagMount));
          ^
3: note: 'Set' has been explicitly marked deprecated here
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
  V8_DEPRECATED(\"Use maybe version\",/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29:
  ^
 note: /Users/john/.node-gyp/12.18.2/include/node/v8config.hexpanded from macro 'V8_DEPRECATED'
:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:96:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]In file included from ../fsevents.cc:
84:
../src/constants.cc:97:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagMount\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagMount));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagUnmount\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagUnmount));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3:   V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.hnote: 'Set' has been explicitly marked deprecated here
:328:29: note: expanded from macro 'V8_DEPRECATED'
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328  declarator __attribute__((deprecated(message)))
                            ^
:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:97:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
In file included from ../fsevents.cc:84:
../src/constants.cc:98:11: warning:   object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagUnmount\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagUnmount));
          ^
'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemCreated\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemCreated));
          ^
  declarator __attribute__((deprecated(message)))/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:
                            ^
3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:98:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
In file included from   object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemCreated\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemCreated));
          ^
../fsevents.cc/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3:84:
: note: 'Set' has been explicitly marked deprecated here../src/constants.cc:
99:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemRemoved\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRemoved));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:99:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemRemoved\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRemoved));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3:In file included from ../fsevents.cc:84:
 ../src/constants.ccnote:: 100:11:'Set' has been explicitly marked deprecated here
 warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemInodeMetaMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemInodeMetaMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:100:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemInodeMetaMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemInodeMetaMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",In file included from ../fsevents.cc:
  ^
84:
../src/constants.cc/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
:101:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  declarator __attribute__((deprecated(message)))
                            ^
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemRenamed\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRenamed));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:101:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemRenamed\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemRenamed));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
In file included from ../fsevents.cc:84:
../src/constants.cc:  declarator __attribute__((deprecated(message)))
                            ^
102:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemModified\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemModified));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:102:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemModified\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemModified));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^In file included from ../fsevents.cc:
84:
../src/constants.cc:103:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemFinderInfoMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemFinderInfoMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:103:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemFinderInfoMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemFinderInfoMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:104:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemChangeOwner\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemChangeOwner));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:104:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemChangeOwner\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemChangeOwner));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:105:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemXattrMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemXattrMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:105:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemXattrMod\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemXattrMod));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:106:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsFile\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsFile));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:106:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsFile\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsFile));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:107:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsDir\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsDir));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:107:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsDir\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsDir));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:108:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsSymlink\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsSymlink));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:84:
../src/constants.cc:108:11: warning: 'Set' is deprecated: Use maybe version [-Wdeprecated-declarations]
  object->Set(Nan::New<v8::String>(\"kFSEventStreamEventFlagItemIsSymlink\").ToLocalChecked(), Nan::New<v8::Integer>(kFSEventStreamEventFlagItemIsSymlink));
          ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:3498:3: note: 'Set' has been explicitly marked deprecated here
  V8_DEPRECATED(\"Use maybe version\",
  ^
/Users/john/.node-gyp/12.18.2/include/node/v8config.h:328:29: note: expanded from macro 'V8_DEPRECATED'
  declarator __attribute__((deprecated(message)))
                            ^
In file included from ../fsevents.cc:85:
../src/methods.cc:14:12: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  handler->Call(3, argv);
           ^
../../../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
In file included from ../fsevents.cc:85:
../src/methods.cc:14:12: warning: 'Call' is deprecated [-Wdeprecated-declarations]
  handler->Call(3, argv);
           ^
../../../../nan/nan.h:1741:3: note: 'Call' has been explicitly marked deprecated here
  NAN_DEPRECATED inline v8::Local<v8::Value>
  ^
../../../../nan/nan.h:106:40: note: expanded from macro 'NAN_DEPRECATED'
# define NAN_DEPRECATED __attribute__((deprecated))
                                       ^
../fsevents.cc:87:16: error: variable has incomplete type 'void'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
               ^
../fsevents.cc:87:16: error: variable has incomplete type 'void'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
               ^
../fsevents.cc:87:31: error: no member named 'Handle' in namespace 'v8'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                          ~~~~^
../fsevents.cc:87:48: error: expected '(' for function-style cast or type construction
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                     ~~~~~~~~~~^
../fsevents.cc:87:31: error: no member named 'Handle' in namespace 'v8'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                          ~~~~^
../fsevents.cc:87:48: error: expected '(' for function-style cast or type construction
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                     ~~~~~~~~~~^
../fsevents.cc:87:50../fsevents.cc:87:50:: error:  use of undeclared identifier 'exports'error
: use of undeclared identifier 'exports'
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                                 ^
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                                 ^
../fsevents.cc:../fsevents.cc87:58:: error: expected ';' after top level declarator87:
58: error: expected ';' after top level declarator
void FSEvents::Initialize(v8::Handle<v8::Object> exports) {
                                                         ^void FSEvents::Initialize(v8::Handle<v8::Object> exports) {

                                                         ;
                                                         ^
                                                         ;
21 warnings and 6 errors generated.
21 warnings and 6 errors generated.
make: *** [Release/obj.target/fse/fsevents.o] Error 1
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error 
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! gyp stack     at ChildProcess.onExit (/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command \"/usr/local/bin/node\" \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\"
gyp ERR! cwd /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents
gyp ERR! node -v v12.18.2
gypgyp ERR!  ERR!node-gyp -v  v3.8.0
System Darwin 19.5.0
gyp ERR! not ok 
gyp ERR! command \"/usr/local/bin/node\" \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64\"
gyp ERR! cwd /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Darwin 19.5.0
node-pre-gyp ERR! command \"/usr/local/bin/node\" \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents
node-pre-gyp ERR! node -v v12.18.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64/fse.node --module_name=fse --module_path=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/divi-scripts/node_modules/fsevents/lib/binding/Release/node-v72-darwin-x64' (1)"
warning Error running install script for optional dependency: "/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb: Command failed.
Exit code: 1
Command: detect-libc prebuild-install || node-gyp rebuild
Arguments: 
Directory: /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb
Output:
prebuild-install WARN install No prebuilt binaries found (target=12.18.2 runtime=node arch=x64 platform=darwin)
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@12.18.2 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/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/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/john/.node-gyp/12.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/john/.node-gyp/12.18.2',
gyp info spawn args   '-Dnode_gyp_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/john/.node-gyp/12.18.2/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb',
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 spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', '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
  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
  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
  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
  CXX(target) Release/obj.target/iltorb/src/common/stream_coder.o
  CXX(target) Release/obj.target/iltorb/src/dec/stream_decode.o
../src/dec/stream_decode.cc:14:72: error: no matching member function for call to 'ToObject'
    Local<Object> dictionary = Nan::Get(params, key).ToLocalChecked()->ToObject();
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/dec/stream_decode.cc:40:49: error: no matching member function for call to 'ToObject'
  StreamDecode* obj = new StreamDecode(info[0]->ToObject());
                                       ~~~~~~~~~^~~~~~~~
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/dec/stream_decode.cc:48:35: error: no matching member function for call to 'ToObject'
  Local<Object> buffer = info[0]->ToObject();
                         ~~~~~~~~~^~~~~~~~
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2672:44: note: candidate function not viable: requires single argument 'context', but no arguments were provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
                                           ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2686:31: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
                Local<Object> ToObject(Isolate* isolate) const);
                              ^
../src/dec/stream_decode.cc:54:16: error: no matching member function for call to 'BooleanValue'
  if (info[2]->BooleanValue()) {
      ~~~~~~~~~^~~~~~~~~~~~
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2699:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
  bool BooleanValue(Isolate* isolate) const;
       ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2702:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
                V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                  ^
../src/dec/stream_decode.cc:70:16: error: no matching member function for call to 'BooleanValue'
  if (info[1]->BooleanValue()) {
      ~~~~~~~~~^~~~~~~~~~~~
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2699:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
  bool BooleanValue(Isolate* isolate) const;
       ^
/Users/john/.node-gyp/12.18.2/include/node/v8.h:2702:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
                V8_WARN_UNUSED_RESULT Maybe<bool> BooleanValue(
                                                  ^
5 errors generated.
make: *** [Release/obj.target/iltorb/src/dec/stream_decode.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.5.0
gyp ERR! command \"/usr/local/bin/node\" \"/Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb/node_modules/.bin/node-gyp\" \"rebuild\"
gyp ERR! cwd /Users/john/PhpstormProjects/BlankWordpress/wp-content/plugins/my-extension/node_modules/iltorb
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"
TomTilly commented 3 years ago

@TohoMonster Running into the same issue. Did you resolve this?

TohoMonster commented 3 years ago

To be honest, this was way too long ago for me to remember.

I had success following: https://www.elegantthemes.com/documentation/developers/how-to-create-a-divi-builder-module/

I think there was something simple on my end. Looking at the plugins directory, I did manage to generate several extensions from this.

I think I had to go back and reimplement everything exactly as called out in the tutorials.

Make sure the dev environment is correctly installed and running: https://www.elegantthemes.com/documentation/developers/divi-development-environment/

Then redo the steps listed in the tutorial: https://www.elegantthemes.com/documentation/developers/divi-development-environment/

Don't miss a step. Verify that your version of Node is current.

But again that was a long time ago. I don't recall if I needed Docker running or not. But it was something simple like that.

I'm focusing on Python development now. But I'll update you if I remember anything.

ajaydsouza commented 3 years ago

@TomTilly Were you able to get this to work? I've got similar issues and the build always fails. I'm on a Mac

TomTilly commented 3 years ago

@ajaydsouza No, but I didn't troubleshoot that much because I didn't have the time. I remember that I tried setting up a local dev environment with Local by Flywheel though, while their instructions were for Docker. If I were to do it again, I'd follow their steps exactly and just use Docker. If you haven't tried that, that might be worth a shot.

ajaydsouza commented 3 years ago

@TomTilly

I was able to fix this by downgrading Node down to a 14x version which is LTS. I had Brew install Node which was the latest version (v16) and downgrading to v14 worked.