Existe pasta ou arquivo do nó
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