private function nodeJsCommand()
    {

        // todo check nodejs exists in windows os
        return true;
        $found = false;
        foreach (['node', 'nodejs'] as $command) {
            $this->process->setCommandLine('which ' . $command);
            $this->process->setTimeout(null);
            $this->process->run();

            if ($this->process->isSuccessful()) {
                $found = true;
                break;
            }
        }

        if (!$found) {
            $this->console->error('node.js was not found');
            $this->errors =  true;
        }
    }
private function nodeJsCommand()
    {

        // todo check nodejs exists in windows os
        return true;
        $found = false;
        foreach (['node', 'nodejs'] as $command) {
            $this->process->setCommandLine('which ' . $command);
            $this->process->setTimeout(null);
            $this->process->run();

            if ($this->process->isSuccessful()) {
                $found = true;
                break;
            }
        }

        if (!$found) {
            $this->console->error('node.js was not found');
            $this->errors =  true;
        }
    }
private function nodeJsCommand ( ) { // todo check nodejs exists in windows os return true ; $ found = false ; foreach ( [ 'node' , 'nodejs' ] as $ command ) { $ this -> process -> setCommandLine ( 'which ' . $ command ) ; $ this -> process -> setTimeout ( null ) ; $ this -> process -> run ( ) ; if ( $ this -> process -> isSuccessful ( ) ) { $ found = true ; break ; } } if ( ! $ found ) { $ this -> console -> error ( 'node.js was not found' ) ; $ this -> errors = true ; } }
Tests that nodejs exists in one of the two possible names.
Tests that nodejs exists in one of the two possible names .