vuejs / vue-cli-plugin-vue-next

A Vue CLI plugin for trying out vue-next (experimental)
MIT License
339 stars 23 forks source link

TypeError: api.assertCliVersion is not a function #38

Closed olearycrew closed 4 years ago

olearycrew commented 4 years ago

When running vue add vue-next I got the following error:

✨  Done in 2.16s.
✔  Successfully installed plugin: vue-cli-plugin-vue-next

 ERROR  TypeError: api.assertCliVersion is not a function
TypeError: api.assertCliVersion is not a function
    at module.exports (/Users/brendan/repos/demos/teamcheck/node_modules/vue-cli-plugin-vue-next/generator/index.js:6:7)
    at /usr/local/lib/node_modules/@vue/cli/lib/Generator.js:103:7
    at Array.forEach (<anonymous>)
    at new Generator (/usr/local/lib/node_modules/@vue/cli/lib/Generator.js:101:13)
    at runGenerator (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:123:21)
    at processTicksAndRejections (internal/process/task_queues.js:89:5)
    at async invoke (/usr/local/lib/node_modules/@vue/cli/lib/invoke.js:117:3)
fangbinwei commented 4 years ago

maybe you should update you @vue/cli

haoqunjiang commented 4 years ago

Your CLI version is too old.

BTW in v4.5 you no longer need this extra plugin. https://github.com/vuejs/vue-cli/releases/tag/v4.5.0