Vue-cli: vue create error occured

Created on 5 Jul 2018  ·  6Comments  ·  Source: vuejs/vue-cli

Version

3.0.0-rc.3

Reproduction link

http://thereisnorepro.com

Steps to reproduce

vue create project-name
manually select features: Babel, Router, Vuex, Linter
use yarn

What is expected?

I just want to make project....

What is actually happening?

yarn install v1.2.1
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR command failed: yarn

Most helpful comment

Yarn has a ignore-engines flag: https://yarnpkg.com/fr/docs/cli/install#toc-yarn-install-ignore-engines

All 6 comments

What is your node and OS version?

@daktwigim so the error message is telling that your node is incompatible with the module mini-css-extract-plugin and your node has to be between versions ">= 6.9.0 <7.0.0 || >= 8.9.0". This raises a question — which version is your Node? To check that, type node --version in the terminal.

Having said that, maybe running npm instead of yarn will be more forgiving? Because I never get these kinds of messages using packaged npm...

Yarn has a ignore-engines flag: https://yarnpkg.com/fr/docs/cli/install#toc-yarn-install-ignore-engines

@Akryum
macOS 10.13.5 & node v8.6.0
Thanks for the answers! 👍

error [email protected]: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0".
error Found incompatible module

I'm getting similarly issue on my system

Version
3.3.0

System Info
$ yarn --version
1.13.0
$ node --version
v10.15.0
$ npm --version
6.4.1
Window System (64bit)

when I tried to create project using following commond (cli), got the error.
Please can any one help me in resolving this ?

vue create project-name
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
error [email protected]: The engine "node" is incompatible with this module. Expected version "^6.14.0 || ^8.10.0 || >=9.10.0". Got "9.8.0"
errorinfo Found incompatible module
Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR command failed: yarn**

Was this page helpful?
0 / 5 - 0 ratings