LoginSignup
3
1

More than 3 years have passed since last update.

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

Posted at

起こった問題

以下の設定で 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 できる。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1