Spawn process, close parent and have process opened

how can I spawn a process in node.js and make it not possible to close although the parent process closes.

var spawn = require("child_process").spawn;

var ex = spawn("vlc", ["/var/www/fr.mkv"]);

When I finish the node.js process who opened VLC, VLC closes and I don't want it to be closed. Thank you.

Set the detached option to true. See docs

spawn("vlc", ["/var/www/fr.mkv"], { detached: true })