K
K
kolo20122017-03-06 11:25:36
npm
kolo2012, 2017-03-06 11:25:36

Why can't I install vue-cli?

System ubuntu 14.04 I
executed it in the terminal npm install --global vue-cli
Then I do it: vue init webpack my-project
and in response, several heaps of errors fall out:

/usr/local/lib/node_modules/vue-cli/bin/vue-init:65
  console.log(`> Use cached template at ${chalk.yellow(tildify(tmp))}`)
              ^
SyntaxError: Unexpected token ILLEGAL
    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:902:3

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Filippov, 2017-03-06
@kolo2012

update node/npm

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question