How to deploy vue-cli and node.js on the server?

Decided to install it on your server
Server Linux 3.16.0-8-amd64 #1 SMP Debian 3.16.64-2 (2019-04-01) x86_64 GNU/Linux
project to node js using vue.
Npm(1.4.21) was installed and running, Node is(v0.10.29).
Team
npm install -g vue-cli
set vue
When you try to run the command init vue webpage , the server responds
root@server:/var/www/vue# init vue webpage
/usr/local/lib/node_modules/vue-cli/bin/vue-init:35
program.on('--help', () => {
^
SyntaxError: Unexpected token )
 at Module._compile (module.js:439:25)
 at Object.Module._extensions..js (module.js:474:10)
 at Module.load (module.js:356:32)
 at Function.Module._load (module.js:312:12)
 at Function.Module.runMain (module.js:497:10)
 at startup (node.js:119:16)
 at node.js:906:3

Probably the problem is that he does not understand the syntax of the TC performs its not like js.
How to solve?
April 3rd 20 at 18:45
1 answer
April 3rd 20 at 18:47
Solution
Apparently you have a version of NodeJS that does not understand the new features of ES6+, update.
Way to put on the server, NodeJS and VueCLI at least strange.
Maybe a stupid question, but why is that strange?) back on the gcd. is Jack vue - summer_Sauer79 commented on April 3rd 20 at 18:50
@summer_Sauer79for Bey - OK. - jerrold.Davis commented on April 3rd 20 at 18:53
5dfbc884b74b7230904064.png https://github.com/nodesource/distributions/blob/m... 13 version, update, wrote upgrade too - summer_Sauer79 commented on April 3rd 20 at 18:56
@summer_Sauer79, As well? - jesse_Cruickshank commented on April 3rd 20 at 18:59
@jesse_Cruickshank, and so, too, but he refers to a false address - summer_Sauer79 commented on April 3rd 20 at 19:02

Find more questions by tags Node.js