今天在用yarn安裝vue-cli時出現了錯誤
../vue-hackernews-2.0> yarn
yarn install v1.12.3
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.14.2"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
vue
進行這個設置以後,會正常。
node
yarn config set ignore-engines truevue-cli
可是這是什麼緣由那?
json
解析以下:this
個人node.js安裝包是8.2版本的,支持vue-cli 3.0版本以上須要v8.9以上orm