nodegui / examples

Repo containing example apps made with NodeGui and React NodeGui
190 stars 34 forks source link

Problem with `npm run dev` #49

Open ghost opened 3 years ago

ghost commented 3 years ago

Just cloned this repo and tried running npm run dev after installing deps, but failled...

cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile

[
  '/Users/leontepe/.nvm/versions/node/v14.16.1/bin/node',
  '/Users/leontepe/Projects/svelte-nodegui/node_modules/.bin/cmake-js',
  'compile'
]
info TOOL Using Unix Makefiles generator.
info REP Build has been failed, trying to do a full rebuild.
ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.

tried installing CMake from the website as it said in the error message, but still got the same error.

Any ideas how to fix this?

a7ul commented 3 years ago

can you check if cmake is in the PATH. Try running cmake independently on the same terminal.

ghost commented 3 years ago

Added it to PATH now, which got the **install step (not the run dev, my mistake) step working. Also noticed that installing cmake with brew is listed as an installation step in the nodegui/nodegui repo readme, but I was following the steps on https://svelte.nodegui.org (FYI).

When (now) running run dev, I get a TS compiler error saying the @nodegui/svelte-nodegui module cannot be found. You know what's the deal with this?

ghost commented 3 years ago

When comparing nodegui and svelte-nodegui in the node_modules/@nodegui folder, I noticed that svelte-nodegui is missing a dist folder. That could be the problem?

a7ul commented 3 years ago

No clue actually, but I am guessing you can try deleting the node modules and do a complete reinstall ?