Skip to content

Instantly share code, notes, and snippets.

@andreyuhai
Last active September 7, 2020 18:49
Show Gist options
  • Save andreyuhai/b19eb8ba1fc2b114576aa1f7cdae6d44 to your computer and use it in GitHub Desktop.
Save andreyuhai/b19eb8ba1fc2b114576aa1f7cdae6d44 to your computer and use it in GitHub Desktop.
A fix for an error while using serverless framework

If you get an error using serverless

Source

Error: spawn /home/imin/.serverless/bin/xdg-open ENOENT
      at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
      at onErrorNT (internal/child_process.js:469:16)
      at processTicksAndRejections (internal/process/task_queues.js:84:21)

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              12.16.1
     Framework Version:         1.67.3 (standalone)
     Plugin Version:            3.6.6
     SDK Version:               2.3.0
     Components Version:        2.29.0

Do

which xdg-open
ln -s /usr/bin/xdg-open /home/USER/.serverless/bin/xdg-open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment