Running npm cli in electron?


#1

Hi, i am using the npm commands cli inside electron so i have somenthing like:

const npm = require('npm');

npm.install(etc....); 

Now, as far as i use electron-prebuilt it works like a charm, then, when i build the .dmg and install the app it doesn’t work… sayng: npm command not found

How can i fix this?

Any help appreciated!