node_modules/laravel-mix/src/Verify.js
/**
     * Verify that the necessary dependency is available.
     *
     * @param {string}  name
     * @param {array}   dependencies
     * @param {Boolean} abortOnComplete
     */
Verify that the necessary dependency is available.
Verify that the necessary dependency is available .
static dependency(name, dependencies, abortOnComplete = false) {
        if (argv['$0'].includes('ava')) return;
        try {
            require.resolve(name);
        } catch (e) {
            console.log(
                'Additional dependencies must be installed. ' +
                'This will only take a moment.'
            );
            installDependencies(dependencies.join(' '));
            if (abortOnComplete) {
                console.log('Finished. Please run Mix again.');
               process.exit();
            }
        }
    }
static dependency ( name , dependencies , abortOnComplete = false ) { if ( argv [ '$0' ] . includes ( 'ava' ) ) return ; try { require . resolve ( name ) ; } catch ( e ) { console . log ( 'Additional dependencies must be installed. ' + 'This will only take a moment.' ) ; installDependencies ( dependencies . join ( ' ' ) ) ; if ( abortOnComplete ) { console . log ( 'Finished. Please run Mix again.' ) ; process . exit ( ) ; } } }
Verify that the necessary dependency is available.
Verify that the necessary dependency is available .