chrisdmacrae / atomic-algolia

An NPM package for running atomic updates to an Algolia indices
67 stars 13 forks source link

[BUG] #21

Closed iamwlb closed 4 years ago

iamwlb commented 4 years ago

Last login: Fri Apr 10 20:51:12 on console You have mail.   ~ ······················································· 20:52:37  ─╮ ❯ j hugo ─╯ /Users/iamwlb/Documents/Workspace/hugo

cd blog  blog/  .DS_Store

  ~/Documents/Workspace/hugo ······························ 20:52:44  ─╮ ❯ cd blog ─╯

  .git/            layouts/        .DS_Store
  archetypes/      resources/      config.toml
  content/         static/         config.yaml
  data/            themes/

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ······· 20:52:45  ─╮ ❯ npm install hugo-algolia -g ─╯ /usr/local/Cellar/node/13.12.0/bin/hugo-algolia -> /usr/local/Cellar/node/13.12.0/lib/node_modules/hugo-algolia/bin/index.js

Error: ENOENT: no such file or directory, open 'public/algolia.json' Emitted 'error' event on WriteStream instance at: at internal/fs/streams.js:399:14 at FSReqCallback.oncomplete (fs.js:159:23) { errno: -2, code: 'ENOENT', syscall: 'open', path: 'public/algolia.json' }

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ·············································· 4s  20:53:45  ─╮ ❯ ls ─╯ archetypes config.toml config.yaml content data layouts resources static themes

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:53:56  ─╮ ❯ vim config.yml ─╯

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ·············································· 4s  20:54:30  ─╮ ❯ ls ─╯ archetypes config.toml config.yaml content data layouts resources static themes

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:54:35  ─╮ ❯ vim config.yaml ─╯

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ············································· 28s  20:55:07  ─╮ ❯ /usr/local/Cellar/node/13.12.0/bin/hugo-algolia -s ─╯ JSON index file was created in public/algolia.json events.js:292 throw er; // Unhandled 'error' event ^

Error: ENOENT: no such file or directory, open 'public/algolia.json' Emitted 'error' event on WriteStream instance at: at internal/fs/streams.js:399:14 at FSReqCallback.oncomplete (fs.js:159:23) { errno: -2, code: 'ENOENT', syscall: 'open', path: 'public/algolia.json' }

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ·············································· 3s  20:55:14  ─╮ ❯ ls ─╯ archetypes config.toml config.yaml content data layouts resources static themes

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:56:03  ─╮ ❯ cd content ─╯

  post/      .DS_Store       about.md       resoure.md

  ~/Documents/Workspace/hugo/blog/content   master !1 ?1 ············································ 20:56:18  ─╮ ❯ cd .. ─╯

  .git/            data/           static/         config.toml
  archetypes/      layouts/        themes/         config.yaml
  content/         resources/      .DS_Store

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:56:25  ─╮ ❯ cd layouts ─╯

  partials/      .DS_Store

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?1 ············································ 20:56:29  ─╮ ❯ cd partials ─╯

  .DS_Store       footer.html

  ~/Documents/Workspace/hugo/blog/layouts/partials   master !1 ?1 ··································· 20:56:32  ─╮ ❯ cd .. ─╯

  partials/      .DS_Store

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?1 ············································ 20:56:36  ─╮ ❯ ls ─╯ config.toml    buffers partials

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?1 ············································ 20:56:38  ─╮ ❯ cd .. ─╯

  .git/            data/           static/         config.toml
  archetypes/      layouts/        themes/         config.yaml
  content/         resources/      .DS_Store

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:56:40  ─╮ ❯ cd static ─╯

Nothing to show here

  ~/Documents/Workspace/hugo/blog/static   master !1 ?1 ············································· 20:56:44  ─╮ ❯ cd .. ─╯ list.algolia.json    buffers

  .git/            data/           static/         config.toml
  archetypes/      layouts/        themes/         config.yaml
  content/         resources/      .DS_Store

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ···················································· 20:56:46  ─╮ ❯ vim config.toml ─╯

  ~/Documents/Workspace/hugo/blog   master !1 ?1 ············································· 47s  21:00:44  ─╮ ❯ cd layouts ─╯

  partials/      .DS_Store

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?1 ············································ 21:01:17  ─╮ ❯ mkdir _default ─╯ config.toml    buffers

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?1 ············································ 21:01:28  ─╮ ❯ cd _default ─╯

Nothing to show here

  ~/Documents/Workspace/hugo/blog/layouts/_default   master !1 ?1 ··································· 21:01:31  ─╮ ❯ vim list.algolia.json ─╯

  ~/Documents/Workspace/hugo/blog/layouts/_default   master !1 ?2 ···························· 11s  21:01:46  ─╮ ❯ cd .. ─╯

  _default/      partials/      .DS_Store

  ~/Documents/Workspace/hugo/blog/layouts   master !1 ?2 ············································ 21:02:05  ─╮ ❯ cd .. ─╯

  .git/            data/           static/         config.toml
  archetypes/      layouts/        themes/         config.yaml
  content/         resources/      .DS_Store

  ~/Documents/Workspace/hugo/blog   master !1 ?2 ···················································· 21:02:07  ─╮ ❯ vim config.toml ─╯

  ~/Documents/Workspace/hugo/blog   master !1 ?2 ·········································· 1m 12s  21:03:24  ─╮ ❯ npm install atomic-algolia --save ─╯ npm WARN deprecated 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.

leveldown@1.9.0 install /Users/iamwlb/node_modules/leveldown prebuild-install || node-gyp rebuild

prebuild-install WARN install No prebuilt binaries found (target=13.12.0 runtime=node arch=x64 platform=darwin) CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_impl.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/db_iter.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/filename.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/dbformat.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_reader.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/log_writer.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/memtable.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/repair.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/table_cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_edit.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/version_set.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/write_batch.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix_sse.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/block_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/filter_block.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/format.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/merger.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/table_builder.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/table/two_level_iterator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/arena.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/bloom.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/cache.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/coding.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/comparator.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/crc32c.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/filter_policy.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/hash.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/logging.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/options.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/status.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/port/port_posix.o CXX(target) Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/util/env_posix.o LIBTOOL-STATIC Release/leveldb.a CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-sinksource.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy-stubs-internal.o CXX(target) Release/obj.target/snappy/deps/snappy/snappy-1.1.4/snappy.o LIBTOOL-STATIC Release/snappy.a CXX(target) Release/obj.target/leveldown/src/batch.o In file included from ../src/batch.cc:3: In file included from ../node_modules/nan/nan.h:192: ../node_modules/nan/nan_maybe_43_inl.h:112:15: error: no member named 'ForceSet' in 'v8::Object' return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);


In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:197:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(Boolean)
^~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
      val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext())          \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2762:37: note: passing argument to parameter 'isolate' here
  Local<Boolean> ToBoolean(Isolate* isolate) const;
                                    ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:197:
In file included from ../node_modules/nan/nan_converters.h:67:
../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
X(bool, Boolean)
^~~~~~~~~~~~~~~~
../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
  return val->NAME ## Value(isolate->GetCurrentContext());                     \
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2771:30: note: passing argument to parameter 'isolate' here
  bool BooleanValue(Isolate* isolate) const;
                             ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:198:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to
      'Local<v8::Context>'
  return scope.Escape(v8::Function::New( isolate
                                         ^~~~~~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:189:7: note: candidate constructor
      (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to
      'const v8::Local<v8::Context> &' for 1st argument
class Local {
      ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:189:7: note: candidate constructor
      (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for
      1st argument
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:193:13: note: candidate template ignored: could not match
      'Local<type-parameter-0-0>' against 'v8::Isolate *'
  V8_INLINE Local(Local<S> that)
            ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:4313:22: note: passing argument to parameter 'context' here
      Local<Context> context, FunctionCallback callback,
                     ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:198:
In file included from ../node_modules/nan/nan_new.h:189:
../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
  return v8::StringObject::New(value).As<v8::StringObject>();
         ~~~~~~~~~~~~~~~~~~~~~      ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:5688:3: note: 'New' declared here
  static Local<Value> New(Isolate* isolate, Local<String> value);
  ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:834:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:187:1: note: 'MakeCallback' has been explicitly marked
      deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:107:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:849:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:180:1: note: 'MakeCallback' has been explicitly marked
      deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:107:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:864:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return node::MakeCallback(
                 ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:173:1: note: 'MakeCallback' has been explicitly marked
      deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:107:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:911:53: error: too few arguments to function call, single argument 'context' was not specified
      v8::Local<v8::String> string = from->ToString();
                                     ~~~~~~~~~~~~~~ ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2750:3: note: 'ToString' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
  ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:921:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type
      'char *'
        length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                    ^~~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:26: note: passing argument to parameter 'isolate' here
  int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
                         ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1473:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context)
      [-Wdeprecated-declarations]
    return scope.Escape(node::MakeCallback(
                              ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:187:1: note: 'MakeCallback' has been explicitly marked
      deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/node.h:107:20: note: expanded from macro 'NODE_DEPRECATED'
    __attribute__((deprecated(message))) declarator
                   ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1533:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1539:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(key, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1545:28: error: no matching member function for call to 'Set'
    New(persistentHandle)->Set(index, value);
    ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3547:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3550:37: note: candidate function not viable: requires 3
      arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1551:32: error: no matching member function for call to 'Get'
        New(persistentHandle)->Get(New(key).ToLocalChecked()));
        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1557:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(key));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/batch.cc:3:
../node_modules/nan/nan.h:1562:48: error: no matching member function for call to 'Get'
    return scope.Escape(New(persistentHandle)->Get(index));
                        ~~~~~~~~~~~~~~~~~~~~~~~^~~
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2
      arguments, but 1 was provided
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                          ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:2222:
../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object,
      v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(persistent().IsNearDeath());
           ~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note:
      expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/batch.cc:3:
In file included from ../node_modules/nan/nan.h:2222:
../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object,
      v8::NonCopyablePersistentTraits<v8::Object> >'
    persistent().MarkIndependent();
    ~~~~~~~~~~~~ ^
../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object,
      v8::NonCopyablePersistentTraits<v8::Object> >'
    assert(wrap->handle_.IsNearDeath());
           ~~~~~~~~~~~~~ ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:93:25: note:
      expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:16:26: error: too few arguments to function call, single argument 'context' was not specified
  return (!obj->ToObject().IsEmpty()
           ~~~~~~~~~~~~~ ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:17:48: error: too few arguments to function call, single argument 'context' was not specified
    && node::Buffer::HasInstance(obj->ToObject()))
                                 ~~~~~~~~~~~~~ ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
In file included from ../src/batch.cc:5:
In file included from ../src/database.h:18:
../src/leveldown.h:18:42: error: too few arguments to function call, single argument 'context' was not specified
    ? node::Buffer::Length(obj->ToObject())
                           ~~~~~~~~~~~~~ ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
  V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
  ^
/Users/iamwlb/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro
      'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
4 warnings and 20 errors generated.
make: *** [Release/obj.target/leveldown/src/batch.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194: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.4.0
gyp ERR! command "/usr/local/Cellar/node/13.12.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
 config.toml                                                                                                     buffers
gyp ERR! cwd /Users/iamwlb/node_modules/leveldown
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.0.5
 config.toml                                                                                                     buffers
gyp ERR! not ok
npm WARN hugo-search-index@0.5.0 requires a peer of gulp@^3 but none is installed. You must install peer dependencies yourself.
npm WARN iamwlb@1.0.0 No description
npm WARN iamwlb@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.9.0 (node_modules/leveldown):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: leveldown@1.9.0 install: `prebuild-install || node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

+ atomic-algolia@0.3.17
updated 1 package in 47.971s

3 packages are looking for funding
 list.algolia.json                                                                                               buffers
  run `npm fund` for details

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ············································· 49s   21:04:15  ─╮
❯ vim config.yaml                                                                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ·············································· 8s   21:07:37  ─╮
❯ vim config.toml                                                                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ·········································· 3m 44s   21:11:26  ─╮
❯ vim config.toml                                                                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ·········································· 1m 33s   21:13:23  ─╮
❯ cd layouts                                                                                                              ─╯

      _default/      partials/      .DS_Store

    ~/Documents/Workspace/hugo/blog/layouts    master !1 ?2 ············································ 21:13:28  ─╮
❯ cd _default                                                                                                             ─╯

      list.algolia.json

    ~/Documents/Workspace/hugo/blog/layouts/_default    master !1 ?2 ··································· 21:13:33  ─╮
❯ vim list.algolia.json                                                                                                   ─╯

    ~/Documents/Workspace/hugo/blog/layouts/_default    master !1 ?2 ···························· 49s   21:14:28  ─╮
❯ cd ..                                                                                                                   ─╯

      _default/      partials/      .DS_Store

    ~/Documents/Workspace/hugo/blog/layouts    master !1 ?2 ············································ 21:14:35  ─╮
❯ cd ..                                                                                                                   ─╯

      .git/            data/           static/         config.toml
      archetypes/      layouts/        themes/         config.yaml
      content/         resources/      .DS_Store

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ···················································· 21:14:37  ─╮
❯ rm -rf config.yaml                                                                                                      ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?1 ···················································· 21:14:49  ─╮
❯ huxo server                                                                                                             ─╯
zsh: command not found: huxo

    ~/Documents/Workspace/hugo/blog    master !1 ?1 ···················································· 21:15:01  ─╮
❯ hugo server                                                                                                             ─╯
Building sites … WARN 2020/04/10 21:15:07 "/Users/iamwlb/Documents/Workspace/hugo/blog/content/resoure.md:1:1": duplicate menu entry with identifier "About" in menu "main"

                   | EN
-------------------+------
  Pages            | 923
  Paginator pages  |  68
  Non-page files   |   0
  Static files     |  47
  Processed images |   0
  Aliases          | 319
  Sitemaps         |   1
  Cleaned          |   0

Built in 1306 ms
Watching for changes in /Users/iamwlb/Documents/Workspace/hugo/blog/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /Users/iamwlb/Documents/Workspace/hugo/blog/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C%

    ~/Documents/Workspace/hugo/blog    master !1 ?1 ············································· 36s   21:15:43  ─╮
❯ hugo server -D                                                                                                          ─╯
Building sites … WARN 2020/04/10 21:15:46 "/Users/iamwlb/Documents/Workspace/hugo/blog/content/resoure.md:1:1": duplicate menu entry with identifier "About" in menu "main"

                   | EN
-------------------+------
  Pages            | 923
  Paginator pages  |  68
  Non-page files   |   0
  Static files     |  47
  Processed images |   0
  Aliases          | 319
  Sitemaps         |   1
  Cleaned          |   0

Built in 1308 ms
Watching for changes in /Users/iamwlb/Documents/Workspace/hugo/blog/{archetypes,content,data,layouts,static,themes}
Watching for config changes in /Users/iamwlb/Documents/Workspace/hugo/blog/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
^C%

    ~/Documents/Workspace/hugo/blog    master !1 ?1 ·········································· 3m 32s   21:19:18  ─╮
❯ hugo                                                                                                                    ─╯
Building sites … WARN 2020/04/10 21:19:20 "/Users/iamwlb/Documents/Workspace/hugo/blog/content/resoure.md:1:1": duplicate menu entry with identifier "About" in menu "main"

                   | EN
-------------------+------
  Pages            | 923
  Paginator pages  |  68
  Non-page files   |   0
  Static files     |  47
  Processed images |   0
  Aliases          | 319
  Sitemaps         |   1
  Cleaned          |   0

Total in 1974 ms

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ···················································· 21:19:22  ─╮
❯ ls                                                                                                                      ─╯
archetypes  config.toml content     data        layouts     public      resources   static      themes

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ···················································· 21:19:30  ─╮
❯ ls                                                                                                                      ─╯
archetypes  config.toml content     data        layouts     public      resources   static      themes

    ~/Documents/Workspace/hugo/blog    master !1 ?2 ···················································· 21:27:59  ─╮
❯ npm init                                                                                                                ─╯
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (blog)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository: (https://e.coding.net/wanglibing/hugo.git)
keywords:
author:
license: (ISC)
About to write to /Users/iamwlb/Documents/Workspace/hugo/blog/package.json:

{
  "name": "blog",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://e.coding.net/wanglibing/hugo.git"
  },
  "author": "",
  "license": "ISC"
}

Is this OK? (yes) yes

    ~/Documents/Workspace/hugo/blog    master !1 ?3 ············································· 29s   21:28:31  ─╮
❯ npm install atomic-algolia --save                                                                                       ─╯
npm WARN deprecated 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.

> fsevents@1.2.12 install /Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node

> core-js@2.6.11 postinstall /Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
 package.json                                                                                                    buffers

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

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

npm notice created a lockfile as package-lock.json. You should commit this file.
 .env                                                                                                            buffers
npm WARN blog@1.0.0 No description

+ atomic-algolia@0.3.17
added 385 packages from 181 contributors in 26.26s

6 packages are looking for funding
  run `npm fund` for details

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ············································· 27s   21:29:05  ─╮
❯ ls                                                                                                                      ─╯
archetypes        content           layouts           package-lock.json public            static
config.toml       data              node_modules      package.json      resources         themes

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ···················································· 21:29:12  ─╮
❯ vim package.json                                                                                                        ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ·········································· 1m 41s   21:31:01  ─╮
❯ ls                                                                                                                      ─╯
archetypes        content           layouts           package-lock.json public            static
config.toml       data              node_modules      package.json      resources         themes

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ···················································· 21:31:06  ─╮
❯ vim .env                                                                                                                ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ·········································· 1m 11s   21:32:22  ─╮
❯ npm run algolia                                                                                                         ─╯

> blog@1.0.0 algolia /Users/iamwlb/Documents/Workspace/hugo/blog
> atomic-algolia

/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61
      content.hits.forEach(function (hit) {
              ^

TypeError: Cannot read property 'hits' of undefined
    at Object.browseDone [as callback] (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61:15)
    at Timeout._onTimeout (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/algoliasearch/src/AlgoliaSearchCore.js:487:23)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog@1.0.0 algolia: `atomic-algolia`
 .env                                                                                                            buffers
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blog@1.0.0 algolia 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!     /Users/iamwlb/.npm/_logs/2020-04-10T13_32_44_310Z-debug.log

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ·············································· 7s   21:32:44  ─╮
❯ vim /Users/iamwlb/.npm/_logs/2020-04-10T13_32_44_310Z-debug.log                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ············································· 39s   21:34:01  ─╮
❯ vim package.json                                                                                                        ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ·········································· 1m 17s   21:35:33  ─╮
❯ vs package.json                                                                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ···················································· 21:35:43  ─╮
❯ ls                                                                                                                      ─╯
archetypes        content           layouts           package-lock.json public            static
config.toml       data              node_modules      package.json      resources         themes

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ···················································· 21:37:04  ─╮
❯ vim .env                                                                                                                ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ············································· 53s   21:38:09  ─╮
❯ npm run algolia                                                                                                         ─╯

> blog@1.0.0 algolia /Users/iamwlb/Documents/Workspace/hugo/blog
> atomic-algolia

/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61
      content.hits.forEach(function (hit) {
              ^

TypeError: Cannot read property 'hits' of undefined
    at Object.browseDone [as callback] (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61:15)
    at Timeout._onTimeout (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/algoliasearch/src/AlgoliaSearchCore.js:487:23)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog@1.0.0 algolia: `atomic-algolia`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blog@1.0.0 algolia 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!     /Users/iamwlb/.npm/_logs/2020-04-10T13_38_21_241Z-debug.log

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ·············································· 4s   21:38:21  ─╮
❯ npm install                                                                                                             ─╯
npm WARN blog@1.0.0 No description

up to date in 2.125s

6 packages are looking for funding
  run `npm fund` for details

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ···················································· 21:40:37  ─╮
❯ npm run algolia                                                                                                         ─╯

> blog@1.0.0 algolia /Users/iamwlb/Documents/Workspace/hugo/blog
 ~/.n/_/2020-04-10T13_40_44_899Z-debug.log                                                                       buffers
  1 0 info it worked if it ends with ok
  2 1 verbose cli [
  3 1 verbose cli   '/usr/local/Cellar/node/13.12.0/bin/node',
  4 1 verbose cli   '/usr/local/bin/npm',
  5 1 verbose cli   'run',
  6 1 verbose cli   'algolia'
  7 1 verbose cli ]
  8 2 info using npm@6.13.4
  9 3 info using node@v13.12.0
 10 4 verbose run-script [ 'prealgolia', 'algolia', 'postalgolia' ]
 11 5 info lifecycle blog@1.0.0~prealgolia: blog@1.0.0
 12 6 info lifecycle blog@1.0.0~algolia: blog@1.0.0
 13 7 verbose lifecycle blog@1.0.0~algolia: unsafe-perm in lifecycle true
 14 8 verbose lifecycle blog@1.0.0~algolia: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Us    ers/iamwlb/Documents/Workspace/hugo/blog/node_modules/.bin:/usr/local/Cellar/zplug/2.4.2/bin:/Users/iamwlb/development/fl    utter/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/iamwlb/Documents/Workspace/go/src/github.com/cosmt    rek/air/bin/darwin:/usr/local/opt/openresty/nginx/sbin:/usr/local/mysql/bin:/usr/local/maven/bin:/usr/local/opt/icu4c/sbi    n:/usr/local/opt/icu4c/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.ap    p/Contents/MacOS:/Users/iamwlb/Documents/Workspace/go/bin:/Users/iamwlb/Library/Android/sdk//platform-tools:/Users/iamwlb    /Library/Android/sdk//tools
 15 9 verbose lifecycle blog@1.0.0~algolia: CWD: /Users/iamwlb/Documents/Workspace/hugo/blog
 16 10 silly lifecycle blog@1.0.0~algolia: Args: [ '-c', 'atomic-algolia' ]
 NORMAL  /Users/iamwlb/.npm/_logs/2020-04-10T13_40_44_899Z-debug.log                 utf-8      2% ☰    1/39  :  1 
"~/.npm/_logs/2020-04-10T13_40_44_899Z-debug.log" 39L, 2730C
> atomic-algolia

/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61
      content.hits.forEach(function (hit) {
              ^

TypeError: Cannot read property 'hits' of undefined
    at Object.browseDone [as callback] (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61:15)
    at Timeout._onTimeout (/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/algoliasearch/src/AlgoliaSearchCore.js:487:23)
    at listOnTimeout (internal/timers.js:549:17)
    at processTimers (internal/timers.js:492:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! blog@1.0.0 algolia: `atomic-algolia`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the blog@1.0.0 algolia 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!     /Users/iamwlb/.npm/_logs/2020-04-10T13_40_44_899Z-debug.log

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ···················································· 21:40:44  ─╮
❯ vim /Users/iamwlb/.npm/_logs/2020-04-10T13_40_44_899Z-debug.log                                                         ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ····························································································· 2m 31s   21:44:37  ─╮
❯ ls                                                                                                                                                                         ─╯
archetypes        content           layouts           package-lock.json public            static
config.toml       data              node_modules      package.json      resources         themes
 .env                                                                                                                                                               buffers

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ······································································································· 21:44:39  ─╮
❯ l                                                                                                                                                                          ─╯
total 328
drwxr-xr-x   17 iamwlb  staff   544B  4 10 21:32 .
drwxr-xr-x@   4 iamwlb  staff   128B  4 10 14:20 ..
-rw-r--r--@   1 iamwlb  staff   8.0K  4 10 18:30 .DS_Store
-rw-r--r--    1 iamwlb  staff   145B  4 10 21:38 .env
drwxr-xr-x   12 iamwlb  staff   384B  4 10 21:42 .git
drwxr-xr-x    3 iamwlb  staff    96B  4 10 14:20 archetypes
-rw-r--r--    1 iamwlb  staff    12K  4 10 21:13 config.toml
drwxr-xr-x    6 iamwlb  staff   192B  4 10 18:53 content
drwxr-xr-x    2 iamwlb  staff    64B  4 10 14:20 data
drwxr-xr-x    5 iamwlb  staff   160B  4 10 21:01 layouts
drwxr-xr-x  189 iamwlb  staff   5.9K  4 10 21:29 node_modules
-rw-r--r--    1 iamwlb  staff   127K  4 10 21:29 package-lock.json
-rw-r--r--    1 iamwlb  staff   386B  4 10 21:35 package.json
drwxr-xr-x   29 iamwlb  staff   928B  4 10 21:19 public
drwxr-xr-x    3 iamwlb  staff    96B  4 10 14:25 resources
drwxr-xr-x    2 iamwlb  staff    64B  4 10 14:20 static
drwxr-xr-x    4 iamwlb  staff   128B  4 10 18:56 themes

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ······································································································· 21:44:40  ─╮
❯ rm -rf .env                                                                                                                                                                ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ······································································································· 21:44:47  ─╮
❯ l                                                                                                                                                                          ─╯
total 320
drwxr-xr-x   16 iamwlb  staff   512B  4 10 21:44 .
 .env                                                                                                                                                               buffers
drwxr-xr-x@   4 iamwlb  staff   128B  4 10 14:20 ..
-rw-r--r--@   1 iamwlb  staff   8.0K  4 10 18:30 .DS_Store
drwxr-xr-x   12 iamwlb  staff   384B  4 10 21:42 .git
drwxr-xr-x    3 iamwlb  staff    96B  4 10 14:20 archetypes
-rw-r--r--    1 iamwlb  staff    12K  4 10 21:13 config.toml
drwxr-xr-x    6 iamwlb  staff   192B  4 10 18:53 content
drwxr-xr-x    2 iamwlb  staff    64B  4 10 14:20 data
drwxr-xr-x    5 iamwlb  staff   160B  4 10 21:01 layouts
drwxr-xr-x  189 iamwlb  staff   5.9K  4 10 21:29 node_modules
-rw-r--r--    1 iamwlb  staff   127K  4 10 21:29 package-lock.json
-rw-r--r--    1 iamwlb  staff   386B  4 10 21:35 package.json
drwxr-xr-x   29 iamwlb  staff   928B  4 10 21:19 public
drwxr-xr-x    3 iamwlb  staff    96B  4 10 14:25 resources
drwxr-xr-x    2 iamwlb  staff    64B  4 10 14:20 static
drwxr-xr-x    4 iamwlb  staff   128B  4 10 18:56 themes

    ~/Documents/Workspace/hugo/blog    master !1 ?5 ······································································································· 21:44:49  ─╮
❯ vim .env                                                                                                                                                                   ─╯

    ~/Documents/Workspace/hugo/blog    master !1 ?6 ····························································································· 1m 44s   21:46:40  ─╮
❯ npm run algolia                                                                                                                                                            ─╯

> blog@1.0.0 algolia /Users/iamwlb/Documents/Workspace/hugo/blog
> atomic-algolia

/Users/iamwlb/Documents/Workspace/hugo/blog/node_modules/atomic-algolia/lib/utils/getRemoteIndex.js:61
      content.hits.forEach(function (hit) {
              ^

 ~/.n/_/2020-04-10T13_47_23_917Z-debug.log                                                                                                                          buffers
  1 0 info it worked if it ends with ok
  2 1 verbose cli [
  3 1 verbose cli   '/usr/local/Cellar/node/13.12.0/bin/node',
  4 1 verbose cli   '/usr/local/bin/npm',
  5 1 verbose cli   'run',
  6 1 verbose cli   'algolia'
  7 1 verbose cli ]
  8 2 info using npm@6.13.4
  9 3 info using node@v13.12.0
 10 4 verbose run-script [ 'prealgolia', 'algolia', 'postalgolia' ]
 11 5 info lifecycle blog@1.0.0~prealgolia: blog@1.0.0
 12 6 info lifecycle blog@1.0.0~algolia: blog@1.0.0
 13 7 verbose lifecycle blog@1.0.0~algolia: unsafe-perm in lifecycle true
 14 8 verbose lifecycle blog@1.0.0~algolia: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/iamwlb/Documents/Workspace/hugo/blog/node_modul    es/.bin:/usr/local/Cellar/zplug/2.4.2/bin:/Users/iamwlb/development/flutter/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/iamwlb/Documents/Workspace/go/s    rc/github.com/cosmtrek/air/bin/darwin:/usr/local/opt/openresty/nginx/sbin:/usr/local/mysql/bin:/usr/local/maven/bin:/usr/local/opt/icu4c/sbin:/usr/local/opt/icu4c/bin:/usr/    local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/iamwlb/Documents/Workspace/go/bin:/Users/iamwlb/Library/And    roid/sdk//platform-tools:/Users/iamwlb/Library/Android/sdk//tools
 15 9 verbose lifecycle blog@1.0.0~algolia: CWD: /Users/iamwlb/Documents/Workspace/hugo/blog
 16 10 silly lifecycle blog@1.0.0~algolia: Args: [ '-c', 'atomic-algolia' ]
 17 11 silly lifecycle blog@1.0.0~algolia: Returned: code: 1  signal: null
 18 12 info lifecycle blog@1.0.0~algolia: Failed to exec algolia script
 19 13 verbose stack Error: blog@1.0.0 algolia: `atomic-algolia`
 20 13 verbose stack Exit status 1
 21 13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
 22 13 verbose stack     at EventEmitter.emit (events.js:315:20)
 23 13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
 24 13 verbose stack     at ChildProcess.emit (events.js:315:20)
 25 13 verbose stack     at maybeClose (internal/child_process.js:1026:16)
 26 13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
 27 14 verbose pkgid blog@1.0.0
 28 15 verbose cwd /Users/iamwlb/Documents/Workspace/hugo/blog
 29 16 verbose Darwin 19.4.0
 30 17 verbose argv "/usr/local/Cellar/node/13.12.0/bin/node" "/usr/local/bin/npm" "run" "algolia"
 31 18 verbose node v13.12.0
 32 19 verbose npm  v6.13.4
 33 20 error code ELIFECYCLE
 34 21 error errno 1
 35 22 error blog@1.0.0 algolia: `atomic-algolia`
 36 22 error Exit status 1
 37 23 error Failed at the blog@1.0.0 algolia script.
 38 23 error This is probably not a problem with npm. There is likely additional logging output above.
 39 24 verbose exit [ 1, true ]
~
~
 NORMAL  /Users/iamwlb/.npm/_logs/2020-04-10T13_47_23_917Z-debug.log                                                                    utf-8     35% ☰   14/39  :  1 
"~/.npm/_logs/2020-04-10T13_47_23_917Z-debug.log" 39L, 2730C
DirtyF commented 4 years ago

Congrats, that's the worst bug report I've ever seen. 🏆

nirgn975 commented 4 years ago

I get the same TypeError: Cannot read property 'hits' of undefined. The problem was that my trial is over and I didn't choose a plan. Once I choose the "community" it was sorted out.

chrisdmacrae commented 4 years ago

Please re-submit an issue following the template.