Help us understand the problem. What is going on with this article?

create-nuxt-appでエラーが出る

起こった問題

以下の設定で create-nuxt-app した時に

% yarn create nuxt-app aiue

create-nuxt-app v2.14.0
✨  Generating Nuxt.js project in aiue
? Project name aiue
? Project description My impeccable Nuxt.js project
? Author name mur71mur
? Choose the package manager Yarn
? Choose UI framework Bulma
? Choose custom server framework Express
? Choose Nuxt.js modules Axios, Progressive Web App (PWA) Support
? Choose linting tools ESLint, Prettier
? Choose test framework Jest
? Choose rendering mode Single Page App
? Choose development tools (Press <space> to select, <a> to toggle all, <i> to invert selection)
throw new SAOError(`Failed to install ${packageName} in ${cwd}`)

というエラーが出た。
この時のnodeのversionは

% node -v
v10.10.0

調査

設定をいじってたらeslintがある時にこのエラーが出てることが判明したので

% yarn add -D eslint

eslintだけをinstallしてみると

eslint@6.8.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "10.10.0"

nodeのversionがダメと言われる。

解決策

とりあえずエラー文に従って

% node -v
v12.6.0

にするとeslintを設定しても create-nuxt-app できる。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした