bin/commands/install.js
function() {
    try {
        var statbuf = fs.statSync(folder);
        if (statbuf.isDirectory()) {
            return;
        }
    }
    catch (x) {
    }

    try {
        fs.mkdirSync("node_modules");
    } catch (x) {
    }

    statbuf = fs.statSync(folder);
    if (statbuf.isDirectory()) {
        return;
    }
}
function() {
    try {
        var statbuf = fs.statSync(folder);
        if (statbuf.isDirectory()) {
            return;
        }
    }
    catch (x) {
    }

    try {
        fs.mkdirSync("node_modules");
    } catch (x) {
    }

    statbuf = fs.statSync(folder);
    if (statbuf.isDirectory()) {
        return;
    }
}
function ( ) { try { var statbuf = fs . statSync ( folder ) ; if ( statbuf . isDirectory ( ) ) { return ; } } catch ( x ) { } try { fs . mkdirSync ( "node_modules" ) ; } catch ( x ) { } statbuf = fs . statSync ( folder ) ; if ( statbuf . isDirectory ( ) ) { return ; } }
The node_modules directory always goes in the current directory
so that NPM doesn't start placing things in parent directories
The node_modules directory always goes in the current directory so that NPM doesn t start placing things in parent directories