Issues setting up SPA with Doppio

Hi everyone, I’ve been trying to set up a vue app using doppio app but I’m encountering some issues. My frappe instance is in developer mode with cors and csrf disabled, but I’m encountering a error saying that the protocol version is unsupported, and when I try to login through /login, I get an internal server error with no response body.

I tried googling but haven’t been able to find a solution

Hi @tech-newbie I was having the same issue, I resolve it by updating node.js in my bench, it depends where you installed it, and which installed version you use and where you installed it either in bench or that of root user,

Step 1: Check the node version of your bench:

$node -v
//output: v12.22.6 or more

Step 2: Check if the root user version matching:

$sudo su
$node -v
// output : v7.2.0 

if the the output of the second step is like v7.2.0 not as the output of the previous one you have to go to the below solution ,

Note : if the results of the two previous steps are the same version, it means there is another problem that I don’t know because i’m new to frappe.

So, the versions are different i prefer to solve the issue by using the below solution:

$sudo su
$node -v
v0.10.42  //old version
$which node
$mv /usr/bin/node /usr/bin/node.bk  //rename the old node
$node -v
bash: /usr/bin/node: No such file or directory
$n bin 7.2.0  //find out the path of the new node installed
$cp /usr/local/n/versions/node/7.2.0/bin/node /usr/bin/node  //replace
$node -v
v7.2.0  //success

Thank you
source of the solution