Page 1 of 1

Node installation packages

Posted: Fri Aug 02, 2019 12:21 pm
by joao.sauer
Hi!

I'm quite new to CodeLite and I cannot find a way to fix one problem when using node.js.

I'm trying to run this example:
https://medium.com/@nahoc/lets-build-a- ... 888747891b
Where it changes the package.js to use the Electron package.
But, When running the CodeLite, it is shows:

Code: Select all

➜  ~ /private/tmp/codelite-exec.sh; exit
internal/modules/cjs/loader.js:628
    throw err;
    ^

Error: Cannot find module 'electron'
How can I "tell" to codelite to first run the npm install and then run the code?
Or I'm doing something wrong here?

Re: Node installation packages

Posted: Sat Aug 03, 2019 10:18 pm
by eranif
Right click on the project and select 'npm install'