OblivionTime / chat

基于electron和nodejs实现仿TIM界面,实现基本的添加好友,单聊,群聊,语音通话,视频通话,发送文件,发送图片
370 stars 72 forks source link

前端的代码和nodejs最新稳定版不兼容,安装依赖报错:error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.16.0" #8

Open dong-lufei opened 1 year ago

dong-lufei commented 1 year ago
# dong @ lufei in E:\test\chat\ui on git:main x [21:42:14]
$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.16.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

# dong @ lufei in E:\test\chat\ui on git:main x [21:47:18] C:1
$ node -v
v18.16.0
dong-lufei commented 1 year ago

我把nodejs版本降到14版本就没有报错:

# dong @ lufei in E:\test\chat\ui on git:main x [22:03:41]
$ yarn
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "vue-linkify > linkifyjs@2.1.9" has unmet peer dependency "jquery@>= 1.11.0".
warning "vue-linkify > linkifyjs@2.1.9" has unmet peer dependency "react@>= 0.14.0".
warning "vue-linkify > linkifyjs@2.1.9" has unmet peer dependency "react-dom@>= 0.14.0".
warning " > sass-loader@8.0.2" has unmet peer dependency "webpack@^4.36.0 || ^5.0.0".
[4/4] Building fresh packages...
$ electron-builder install-app-deps
  • electron-builder  version=22.14.13
Done in 38.52s.

# dong @ lufei in E:\test\chat\ui on git:main x [22:04:25]
$ node -v
v14.21.3