Folder lub plik węzły istnieje
const { exists } = require("fs");
var fs = require( 'fs' ),
path = require( 'path' ),
expect = require( 'expect' ),
exists(path.join(__dirname, "\\node_modules\\.bin\\"), (e) => {
console.log(e ? "\\node_modules\\.bin\\ exists" : "\nInstall missing packages\n");
});
Blushing Bug