examples icon indicating copy to clipboard operation
examples copied to clipboard

Problem with `npm run dev`

Open ghost opened this issue 4 years ago • 4 comments
trafficstars

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?

ghost avatar Apr 24 '21 13:04 ghost

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

a7ul avatar Apr 24 '21 18:04 a7ul

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 avatar Apr 24 '21 19:04 ghost

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?

ghost avatar Apr 24 '21 19:04 ghost

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

a7ul avatar Apr 24 '21 22:04 a7ul