Xcrun: error: invalid active developer path

Hello, I am trying to set up a documentation site for my internship using the twitter bootstrap skeleton of docpad and I have received this error twice on running the
mkdir my_site
cd my_site
docpad init
docpad run

I have pasted the error log for you below. Any help with solving this would be greatly appreciated!

Error Log:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
notice: Set the exit code from unset to 1 because of error from: The action [skeleton] failed to complete!
error: Error: The action [skeleton] failed to complete!
    at docpadUtil.action.call.args (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/edition-esnext/lib/docpad.js:362:22)
    at Task.<anonymous> (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/edition-esnext/lib/util.js:377:11)
    at Object.onceWrapper (events.js:273:13)
    at Task.emit (events.js:182:13)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.listener (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/interface.js:61:10)
    at Task.emit (events.js:182:13)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.finish (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:418:9)
    at Task.itemCompletionCallback (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:375:8)
    at completeMethod (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:507:5)
    at /Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/edition-esnext/lib/docpad.js:5139:18
    at TaskGroup.<anonymous> (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/edition-esnext/lib/docpad.js:5107:18)
    at Object.onceWrapper (events.js:273:13)
    at TaskGroup.emit (events.js:182:13)
    at TaskGroup.EventEmitter.emit (domain.js:460:23)
    at TaskGroup.listener (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/interface.js:61:10)
    at TaskGroup.emit (events.js:182:13)
    at TaskGroup.EventEmitter.emit (domain.js:460:23)
    at TaskGroup.finish (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:972:8)
    at TaskGroup.fire (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:1037:10)
    at TaskGroup.itemDoneCallbackNextState (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:949:8)
    at Object.onceWrapper (events.js:273:13)
    at Task.emit (events.js:187:15)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.listener (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/interface.js:61:10)
    at Task.emit (events.js:182:13)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.finish (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:418:9)
    at Task.itemCompletionCallback (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:375:8)
    at completeMethod (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:507:5)
    at /Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/safeps/source/index.js:1516:21
    at TaskGroup.<anonymous> (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/safeps/source/index.js:545:5)
    at Object.onceWrapper (events.js:273:13)
    at TaskGroup.emit (events.js:182:13)
    at TaskGroup.EventEmitter.emit (domain.js:460:23)
    at TaskGroup.listener (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/interface.js:61:10)
    at TaskGroup.emit (events.js:182:13)
    at TaskGroup.EventEmitter.emit (domain.js:460:23)
    at TaskGroup.finish (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:972:8)
    at TaskGroup.fire (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:1037:10)
    at TaskGroup.itemDoneCallbackNextState (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/taskgroup.js:949:8)
    at Object.onceWrapper (events.js:273:13)
    at Task.emit (events.js:187:15)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.listener (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/interface.js:61:10)
    at Task.emit (events.js:182:13)
    at Task.EventEmitter.emit (domain.js:460:23)
    at Task.finish (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:418:9)
    at Task.itemCompletionCallback (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:375:8)
    at completeMethod (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/taskgroup/source/lib/task.js:507:5)
    at ChildProcess.<anonymous> (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/safeps/source/index.js:620:13)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:460:23)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

↳ Error: Command exited with a non-zero status code.
    at Object.updateExecutableResult (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/safeps/source/index.js:340:19)
    at ChildProcess.<anonymous> (/Users/weddingshoppe/.nvm/versions/node/v10.12.0/lib/node_modules/docpad/node_modules/safeps/source/index.js:619:13)
    at ChildProcess.emit (events.js:182:13)
    at ChildProcess.EventEmitter.emit (domain.js:460:23)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

Please report it using this guide: https://docpad.org/bug-report
info: DocPad is shutting down...
Shutdown complete. See you next time.

Can you send the output of uname -a and node --versions, also can you run docpad with the --debug flag then provide the docpad-debug.log file that is outputted.

Sure thing!

Darwin NatesMacBookPro.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64

node version: v10.12.0

ran debug to no avail, doesnt even recognize the -d or --debug commands.

docpad info for further references:

docpad info

{ global: false,

  plugins: { cleanurls: {}, eco: {}, livereload: {} },

  rootPath: '/Users/weddingshoppe',

  packagePath: 'package.json',

  configPaths:

 [ 'docpad.js', 'docpad.coffee', 'docpad.json', 'docpad.cson' ],

  pluginPaths: [],

  reloadPaths: [],

  regeneratePaths: [],

  debugLogPath: 'docpad-debug.log',

  userConfigPath: '.docpad.cson',

  outPath: 'out',

  sourcePaths: [ 'source', 'src' ],

  documentsPaths: [ 'documents', 'render' ],

  filesPaths: [ 'files', 'static', 'public' ],

  layoutsPaths: [ 'layouts' ],

  ignorePaths: false,

  ignoreHiddenFiles: false,

  ignoreCommonPatterns: true,

  ignoreCustomPatterns: false,

  watchOptions:  **null** ,

  logLevel: 3,

  verbose: false,

  debug: false,

  color: true,

  silent: true,

  progress: false,

  catchOurExceptions: 'error',

  catchUncaughtExceptions: 'fatal',

  setExitCodeOnFatal: true,

  setExitCodeOnError: true,

  setExitCodeOnRequest: true,

  requestTimeout: 30000,

  destroyDelay: -1,

  destroyOnExit: true,

  destroyOnSignalInterrupt: true,

  regenerateDelay: 100,

  slowFilesDelay: 20000,

  slowPluginsDelay: 20000,

  databaseCache: false,

  detectEncoding: false,

  renderSingleExtensions: false,

  renderPasses: 1,

  offline: false,

  checkVersion: false,

  poweredByDocPad: true,

  helperUrl: 'http://helper.docpad.org/',

  templateData: {},

  collections: {},

  events: {},

  regenerateEvery: false,

  regenerateEveryOptions: { populate: true, partial: false },

  localeCode:  **null** ,

  env:  **null** ,

  environments:

 { development: { checkVersion: true, welcome: true, progress: true } },

  welcome: false,

  name: 'Nathan Voigt',

  email: 'redacted',

  username: 'nate_voigt',

  subscribed: false,

  subscribeTryAgain: 1540659712720,

  tos: true,

  identified: true,

srcPath: '/Users/weddingshoppe/src' }

Any help or advice you could give me would be greatly appreciated. Thanks man!

Very best,

Nate Voigt

This seems to be an issue with your developer environment configuration rather than with DocPad

As the error is due to an invalid PATH configuration, and an invalid XCode CLI tools setup.

Perhaps give GitHub - bevry/dorothy: 🧙🏻‍♀️ A better dotfile ecosystem with cross-platform automations. Supports fish, zsh, bash, mac and linux. Zero to hero in minutes on new and existing machines. a go to manage your developer environment for you.