question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot get the example to run

See original GitHub issue

I am reporting a bug or issue cannot get the example to run

Expected behavior: app starts sketch Observed behavior:

react-sketchapp/examples/basic-setup on master via ⬢ v7.7.1
➔ npm run render

> basic-setup@1.0.0 render /Users/adamclark/repos/react-sketchapp/examples/basic-setup
> skpm build --watch --run

🖨  Copied src/manifest.json in 9ms
Executing post-build scripts
⛏  Built ./my-command.js in 1407ms
events.js:163
    throw er; // Unhandled 'error' event
    ^

Error: spawn /Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool ENOENT
  at exports._errnoException (util.js:1029:11)
  at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
  at onErrorNT (internal/child_process.js:367:16)
  at _combinedTickCallback (internal/process/next_tick.js:80:11)
  at process._tickCallback (internal/process/next_tick.js:104:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! basic-setup@1.0.0 render: `skpm build --watch --run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the basic-setup@1.0.0 render script 'skpm build --watch --run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the basic-setup package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     skpm build --watch --run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs basic-setup
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls basic-setup
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

How to reproduce: using sketch 43.2, node 7.7.1, and npm 4.5

git clone https://github.com/airbnb/react-sketchapp.git
cd react-sketchapp/examples/basic-setup && npm install

npm run render

Sketch version: sketch 43.2 Please attach screenshots, a zip file of your project, and/or a link to your github project just trying to run the example

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jemgoldcommented, Apr 27, 2017

🤔 sounds like Sketch might be installed in a different location - can you try the solution in #27 and report back?

0reactions
adamclark64commented, Apr 27, 2017

🤔 and throw an error referencing location of sketch not being in /applications. not sure if that covers all the basis of that error but for #27 and my issue it would’ve been a quick fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot get the first example to run? #814 - GitHub
I got this error Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed at doWrite (_stream_writable.js:399:19) at ...
Read more >
TMS320F28388D: Cannot get "enet_lwip" example to run
Hello TI Support Team,. I imported both "cm_common_config_c28x" and "enet_lwip" from C2000Ware_3_03_00_00 into CCS. Then, I set the following ...
Read more >
I can't get this example from DirectWrite to run in V2015
MSDN page on DWriteCreateFactory states that you must include dwrite.h (assuming you have done since code compiled) and link dwrite.lib .
Read more >
Can't get the java DDS example to run - RTI Community
I'm testing out the new version of DDS and it isn't running for me. I've been following the documentation for setup and running...
Read more >
I can't get my local server to run (Example) - Treehouse
I cd into the project folder that I am in "o:\Coding\Projects\scoreboard\scoreboard>" and use the prompt "python -m http.server". When I open ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found