Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with npm run dev #49

Open
ghost opened this issue Apr 24, 2021 · 4 comments
Open

Problem with npm run dev #49

ghost opened this issue Apr 24, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 24, 2021

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
Copy link
Collaborator

a7ul commented Apr 24, 2021

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

@ghost
Copy link
Author

ghost commented Apr 24, 2021

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
Copy link
Author

ghost commented Apr 24, 2021

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
Copy link
Collaborator

a7ul commented Apr 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant