vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.76k stars 6.33k forks source link

node 20 support #7419

Open MikeMitterer opened 1 year ago

MikeMitterer commented 1 year ago

Version

5.0.8

Environment info

Environment Info:

  System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 20.2.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 9.6.6 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 116.0.5845.96
    Edge: Not Found
    Firefox: 113.0.2
    Safari: 16.5.2
  npmPackages:
    @vue/cli-overlay:  5.0.8
    @vue/cli-plugin-router:  5.0.8
    @vue/cli-plugin-typescript: ~5.0.8 => 5.0.8
    @vue/cli-plugin-unit-jest: ~5.0.8 => 5.0.8
    @vue/cli-plugin-vuex:  5.0.8
    @vue/cli-service: ~5.0.8 => 5.0.8
    @vue/cli-shared-utils:  5.0.8
    @vue/compiler-sfc:  2.7.14
    @vue/component-compiler-utils:  3.3.0
    @vue/test-utils: 1 => 1.3.6
    @vue/vue2-jest: ^29.2.4 => 29.2.5
    @vue/web-component-wrapper:  1.3.0
    jest-serializer-vue:  2.0.2
    typescript: ^4.4.4 => 4.9.3
    vue: 2.7 => 2.7.14
    vue-class-component: ^7.2.6 => 7.2.6
    vue-cli-plugin-vuetify: ^2.4.2 => 2.5.8
    vue-hot-reload-api:  2.3.4
    vue-loader:  17.0.1 (15.10.1)
    vue-property-decorator: ^9.1.2 => 9.1.2
    vue-router: ^3.5.2 => 3.6.5
    vue-style-loader:  4.1.3
    vue-template-compiler: 2.7 => 2.7.14
    vue-template-es2015-compiler:  1.9.1
    vuetify: ^2.5.10 => 2.6.12
    vuetify-loader: ^1.7.2 => 1.9.2
    vuex: ^3.6.2 => 3.6.2
    vuex-class: ^0.3.2 => 0.3.2
    vuex-module-decorators: ^1.0.1 => 1.2.0
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

yarn

What is expected?

Should install necessary packages

What is actually happening?

yarn install v1.22.19 [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... error @achrinza/node-ipc@9.2.6: The engine "node" is incompatible with this module. Expected version "8 || 9 || 10 || 11 || 12 || 13 || 14 || 15 || 16 || 17 || 18 || 19". Got "20.2.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


This is a workaround... yarn config set ignore-engines true

yarn why gives me:

yarn why v1.22.19 [1/4] 🤔 Why do we have the module "@achrinza/node-ipc"...? [2/4] 🚚 Initialising dependency graph... [3/4] 🔍 Finding dependency... [4/4] 🚡 Calculating file sizes... => Found "@achrinza/node-ipc@9.2.6" info Reasons this module exists

achrinza commented 1 year ago

@achrinza/node-ipc@9.2.7 has explicit support for Node.js v20 (https://github.com/achrinza/node-ipc/issues/45), of which is already in scope as a transient dependency for the Vue CLI (https://github.com/vuejs/vue-cli/commit/00fd2b6f9f3486db88d0960b57ceba6474998f7a).

Have you tried regenerating the Yarn lockfile?