Not working on new machine (index of untyped nil)

I’m trying to work on my project on a new machine and I don’t remember what version of Hugo I used to build it with (my old computer is gone). Please help.

  1. I pulled my project onto a new computer: GitHub - GeneDobrovolsky/dobrovolsky.github.io.
  2. Installed Brew, and then Hugo.
  3. Then I ran ‘hugo server’ in my project folder and I got an error.

Building sites … ERROR 2018/11/12 16:35:40 render of “section” failed: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/_default/list.html:10:39” : execute of template failed: template: _default/list.html:1:3: executing “_default/list.html” at <partial "dom/head.ht…>: error calling partial: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/partials/dom/head.html:10:39” : execute of template failed: template: partials/dom/head.html:10:39: executing “partials/dom/head.html” at <index .Site.Data.css…>: error calling index: index of untyped nil

ERROR 2018/11/12 16:35:40 render of “page” failed: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/_default/work.html:10:39” : execute of template failed: template: _default/work.html:1:3: executing “_default/work.html” at <partial "dom/head.ht…>: error calling partial: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/partials/dom/head.html:10:39” : execute of template failed: template: partials/dom/head.html:10:39: executing “partials/dom/head.html” at <index .Site.Data.css…>: error calling index: index of untyped nil

ERROR 2018/11/12 16:35:40 render of “page” failed: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/_default/single.html:10:39” : execute of template failed: template: _default/single.html:1:3: executing “_default/single.html” at <partial "dom/head.ht…>: error calling partial: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/partials/dom/head.html:10:39” : execute of template failed: template: partials/dom/head.html:10:39: executing “partials/dom/head.html” at <index .Site.Data.css…>: error calling index: index of untyped nil

ERROR 2018/11/12 16:35:40 render of “page” failed: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/_default/work.html:10:39” : execute of template failed: template: _default/work.html:1:3: executing “_default/work.html” at <partial "dom/head.ht…>: error calling partial: “/Users/Eugene/Repos/dobrovolsky.github.io/layouts/partials/dom/head.html:10:39” : execute of template failed: template: partials/dom/head.html:10:39: executing “partials/dom/head.html” at <index .Site.Data.css…>: error calling index: index of untyped nil

Also, trying to install dependencies looked bad (errors below), although I found all of them in the node_modules folder:

fsevents@1.1.3 install /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents
node install

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-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.13.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
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-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.13.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
CXX(target) Release/obj.target/fse/fsevents.o
In file included from In file included from …/fsevents.cc…/fsevents.cc::66:
:
In file included from In file included from …/…/nan/nan.h…/…/nan/nan.h::203203:
:
In file included from In file included from …/…/nan/nan_new.h…/…/nan/nan_new.h::189189:
:
…/…/nan/nan_implementation_12_inl.h:337:28: …/…/nan/nan_implementation_12_inl.h:warning337: :28: warning: ‘New’‘New’ isis deprecateddeprecated

        [-Wdeprecated-declarations][-Wdeprecated-declarations]

return v8::StringObject::New(value).Asv8::StringObject();
^
return v8::StringObject::New(value).Asv8::StringObject();
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h::50525052::33:: notenote: : ‘New’‘New’ hashas beenbeen explicitlyexplicitly markedmarked

        deprecateddeprecated  herehere

V8_DEPRECATED(“Use Isolate* version”, V8_DEPRECATED(“Use Isolate* version”,

^ ^

/Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327:29: note: expanded from macro
‘V8_DEPRECATED’
/Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327:29: note declarator attribute((deprecated)):
expanded ^
from macro
‘V8_DEPRECATED’
declarator attribute((deprecated))
^
In file included from …/fsevents.cc:6:
In file included from …/fsevents.cc…/…/nan/nan.h::6839:
:18:…/…/nan/nan.h :839:warning18: : 'MakeCallback’warning : is deprecated: 'MakeCallback’Use isMakeCallback(…,
deprecated: async_context)Use [-Wdeprecated-declarations]MakeCallback(…,

  async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
             ^
return node::MakeCallback(
             ^

/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:175:1/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:: 175:1note: : note’MakeCallback’: has’MakeCallback’ beenhas
beenexplicitly
markedexplicitly markeddeprecated deprecated herehere

NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
^
NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:91:20:/Users/Eugene/.node-gyp/10.13.0/include/node/node.h :91:note20: : expanded fromnote : macro
expanded 'NODE_DEPRECATED’from
macro
‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^
attribute((deprecated(message))) declarator
^
In file included from …/fsevents.cc:6:
…/…/nan/nan.h:854:18: warning: ‘MakeCallback’ is deprecated:In file included from …/fsevents.ccUse: 6MakeCallback(…,:

  async_context)../../nan/nan.h [-Wdeprecated-declarations]:854

:18: warning: return node::MakeCallback(
‘MakeCallback’ ^
is deprecated: Use /Users/Eugene/.node-gyp/10.13.0/include/node/node.hMakeCallback(…,:
168 :async_context)1 :[-Wdeprecated-declarations]
note: ‘MakeCallback’ has been
explicitly return node::MakeCallback(
marked ^deprecated
here
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:168:1: note: ‘MakeCallback’ has NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,been

  ^explicitly

marked deprecated here/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:
91:20: note: expanded from macro
'NODE_DEPRECATED’NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,

^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:91:20: attribute((deprecated(message))) declaratornote
: ^expanded
from macro
‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^
In file included from …/fsevents.cc:6:
…/…/nan/nan.h:869:18: warning: ‘MakeCallback’ is deprecated: Use MakeCallback(…,
async_context) [-Wdeprecated-declarations]
In file included from return node::MakeCallback(
…/fsevents.cc: ^6
:
…/…/nan/nan.h:/Users/Eugene/.node-gyp/10.13.0/include/node/node.h869::16118::1 : warning: note: ‘MakeCallback’‘MakeCallback’ ishas deprecated:been
Use explicitlyMakeCallback(…,
marked async_context)deprecated [-Wdeprecated-declarations]here

return node::MakeCallback(
             ^

NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h^
:161:1/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:: 91:20note:: ‘MakeCallback’note : hasexpanded frombeen
macro
explicitly’NODE_DEPRECATED’ marked
deprecated here
attribute((deprecated(message))) declarator
^
NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:91:20: note: expanded from macro
‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^
In file included from …/fsevents.cc:6:
…/…/nan/nan.h:916:44: warning: ‘ToString’ is deprecated [-Wdeprecated-declarations]
v8::Localv8::String string = from->ToString();
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h:2454:10: note: ‘ToString’ has been explicitly
marked deprecated hereIn file included from …/fsevents.cc
:6:
…/…/nan/nan.h:916:44: warning: ‘ToString’ is deprecated inline V8_DEPRECATED(“Use maybe version”, Local ToString() const);
[-Wdeprecated-declarations] ^

/Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327:29: note: expanded from macro
‘V8_DEPRECATED’ v8::Localv8::String string = from->ToString();

                                       ^

/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h:2454: declarator attribute((deprecated))10
: ^
note: ‘ToString’ has been explicitly
marked deprecated here
inline V8_DEPRECATED(“Use maybe version”, Local ToString() const);
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327:29: note: expanded from macro
‘V8_DEPRECATED’
declarator attribute((deprecated))
^
In file included from …/fsevents.cc:6:
…/…/nan/nan.h:926:27: warning: ‘WriteUtf8’ is deprecated [-Wdeprecated-declarations]
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h:2658:3: note: ‘WriteUtf8’ has been explicitly
marked deprecated here
In file included from …/fsevents.cc: V8_DEPRECATED(“Use Isolate* version”,6
:
^…/…/nan/nan.h
:926:27: /Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327warning:29: : note’WriteUtf8’: isexpanded fromdeprecated macro[-Wdeprecated-declarations]
‘V8_DEPRECATED’

declarator attribute((deprecated))
^
length_ = string->WriteUtf8(str_, static_cast(len), 0, flags);
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8.h:2658:3: note: ‘WriteUtf8’ has been explicitly
marked deprecated here
V8_DEPRECATED(“Use Isolate* version”,
^
/Users/Eugene/.node-gyp/10.13.0/include/node/v8config.h:327:29: note: expanded from macro
‘V8_DEPRECATED’
declarator attribute((deprecated))
^
In file included from …/fsevents.cc:6:
…/…/nan/nan.h:1478:31: warning: ‘MakeCallback’ is deprecated: Use MakeCallback(…,
async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:175:1: note: ‘MakeCallback’ has been
explicitly marked deprecated here
NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:91:20: note: expanded from macro
‘NODE_DEPRECATED’
attribute((deprecated(message))) declaratorIn file included from
…/fsevents.cc: ^6
:
…/…/nan/nan.h:1478:31: warning: ‘MakeCallback’ is deprecated: Use MakeCallback(…,
async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:175:1: note: ‘MakeCallback’ has been
explicitly marked deprecated here
NODE_DEPRECATED(“Use MakeCallback(…, async_context)”,
^
/Users/Eugene/.node-gyp/10.13.0/include/node/node.h:91:20: note: expanded from macro
‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^
7 warnings generated.
7 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp SOLINK_MODULE(target) Release/fse.node
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:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node” “–module_name=fse” “–module_path=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64”
gyp ERR! cwd /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents
gyp ERR! node -v v10.13.0
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 /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64’ (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Darwin 18.2.0
node-pre-gyp ERR! command “/usr/local/bin/node” “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp” “install” “–fallback-to-build”
node-pre-gyp ERR! cwd /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents
node-pre-gyp ERR! node -v v10.13.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64’ (1)

node-sass@4.7.2 install /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass
node scripts/install.js

COPY /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/darwin-x64-64_binding.node
Cannot download “https://github.com/sass/node-sass/releases/download/v4.7.2/darwin-x64-64_binding.node”:

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

node-sass@4.7.2 postinstall /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass
node scripts/build.js

Building: /usr/local/bin/node /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ ‘/usr/local/bin/node’,
gyp verb cli ‘/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’ ]
gyp info using node-gyp@3.6.2
gyp info using node@10.13.0 | darwin | x64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:89:16
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb which failed python2 { Error: not found: python2
gyp verb which failed at getNotFoundError (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:13:12)
gyp verb which failed at F (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:68:19)
gyp verb which failed at E (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:80:29)
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:89:16
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/index.js:42:5
gyp verb which failed at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/mode.js:8:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:154:21)
gyp verb which failed stack:
gyp verb which failed ‘Error: not found: python2\n at getNotFoundError (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:13:12)\n at F (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:68:19)\n at E (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:80:29)\n at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/which/which.js:89:16\n at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/index.js:42:5\n at /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/isexe/mode.js:8:5\n at FSReqWrap.oncomplete (fs.js:154:21)’,
gyp verb which failed code: ‘ENOENT’ }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which succeeded python /usr/bin/python
gyp verb check python version /usr/bin/python -c "import platform; print(platform.python_version());" returned: “2.7.10\n”
gyp verb get node dir no --target version specified, falling back to host node version: 10.13.0
gyp verb command install [ ‘10.13.0’ ]
gyp verb install input version string “10.13.0”
gyp verb install installing version: 10.13.0
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check “installVersion”
gyp verb got “installVersion” 9
gyp verb needs “installVersion” 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.13.0
gyp verb build dir attempting to create “build” dir: /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/build
gyp verb build dir “build” dir needed to be created? /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing “make”
gyp info spawn /usr/bin/python
gyp info spawn args [ ‘/Users/Eugene/Repos/dobrovolsky.github.io/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/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/Users/Eugene/.node-gyp/10.13.0/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/Eugene/.node-gyp/10.13.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/Users/Eugene/.node-gyp/10.13.0/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass’,
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=.’ ]
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

Traceback (most recent call last):
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/gyp_main.py”, line 16, in
sys.exit(gyp.script_main())
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/init.py”, line 545, in script_main
return main(sys.argv[1:])
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/init.py”, line 538, in main
return gyp_main(args)
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/init.py”, line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 795, in Write
self.Pchify))
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py”, line 1265, in XcodeVersion
version = re.match(r’(\d.\d.?\d*)', version).groups()[0]
AttributeError: ‘NoneType’ object has no attribute ‘groups’
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.2.0
gyp ERR! command “/usr/local/bin/node” “/Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd /Users/Eugene/Repos/dobrovolsky.github.io/node_modules/node-sass
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN Personal@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: node install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.7.2 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.7.2 postinstall 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/Eugene/.npm/_logs/2018-11-12T15_38_33_593Z-debug.log
Eugenes-MacBook-Pro:dobrovolsky.github.io eugene$

First those are all node errors nothing to do with Hug, it looks like you are using node for sass compilation if thats the case I suggest you drop it and replace it with hugo pipes which supports sass compiling now.

Good luck.

Everything is OK with my Hugo 0.5.1.

                   | EN
  +------------------+-----+
  Pages            |  21  
  Paginator pages  |   0  
  Non-page files   | 212  
  Static files     | 214  
  Processed images |   0  
  Aliases          |   0  
  Sitemaps         |   1  
  Cleaned          |   0 

Juste some npm problems: yarn update then gulp and everything is OK.

1 Like