Node installation packages

CodeLite installation/troubleshooting forum
joao.sauer
CodeLite Curious
Posts: 1
Joined: Fri Aug 02, 2019 12:18 pm
Genuine User: Yes
IDE Question: C++
Contact:

Node installation packages

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Node installation packages

Post by eranif »

Right click on the project and select 'npm install'
Make sure you have read the HOW TO POST thread
Post Reply