Running npm cli in electron?


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

const npm = require('npm');


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!