L
L
LebedevFF2019-12-19 21:17:45
Node.js
LebedevFF, 2019-12-19 21:17:45

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

I decided to install on my server

Linux server 3.16.0-8-amd64 #1 SMP Debian 3.16.64-2 (2019-04-01) x86_64 GNU/Linux
Node js project using vue.
Npm(1.4.21) was installed and working, Node is (v0.10.29).
team
npm install -g vue-cli
installed vue
When trying to execute a command , the vue init webpageserver responds
[email protected]:/var/www/vue# vue init 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

The problem is probably that it does not understand the syntax of the file, because it does not execute it as js.
How to decide?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question