1

Am trying ssr using laravel react js. While am using spatie ssr package for laravel. all configuration setup is done. but whenever i trying to run its throwing error

    public function mustRun(callable $callback = null, array $env = [])
    {
        if (0 !== $this->run($callback, $env)) {
            throw new ProcessFailedException($this);
        }

        return $this;
    }


"""
The command "node D:\Deepak\react\storage\app/ssr\95698e4a8cd89030841216d9c8ae9b83.js" failed.\n
\n
Exit Code: 1(General error)\n
\n
Working directory: D:\Deepak\react\public\n
\n
Output:\n
================\n
\n
\n
Error Output:\n
================\n
'node' is not recognized as an internal or external command,\r\n
operable program or batch file.\r\n
 (View: D:\Deepak\react\resources\views\welcome.blade.php)

Also i checked with node version and system environment path setup. everything is good.

Node Version 8.9.4

        public function mustRun(callable $callback = null, array $env = [])
    {
        if (0 !== $this->run($callback, $env)) {
            throw new ProcessFailedException($this);
        }

        return $this;
    }

    /**
     * Starts the process and returns after writing the input to STDIN.
     *
     * This method blocks until all STDIN data is sent to the process then it
     * returns while the process runs in the background.
     *
     * The termination of the process can be awaited with wait().
     *
     * The callback receives the type of output (out or err) and some bytes from
     * the output in real-time while writing the standard input to the process.
     * It allows to have feedback from the independent process during execution.
     *
     * @param callable|null $callback A PHP callback to run whenever there is some
     *                                output available on STDOUT or STDERR
     * @param array         $env      An array of additional env vars to set when running the process

Arguments

"""
The command "node D:\Deepak\react\storage\app/ssr\95698e4a8cd89030841216d9c8ae9b83.js" failed.\n
\n
Exit Code: 1(General error)\n
\n
Working directory: D:\Deepak\react\public\n
\n
Output:\n
================\n
\n
\n
Error Output:\n
================\n
'node' is not recognized as an internal or external command,\r\n
operable program or batch file.\r\n
 (View: D:\Deepak\react\resources\views\welcome.blade.php)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.