Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 8889

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

$
0
0

起こった問題

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


Viewing all articles
Browse latest Browse all 8889