目前是我的windows node 版本
C:\Users\Administrator>node -v
v18.13.0
启动报错了
F:\javaString11\RuoYi-Vue\ruoyi-ui>npm install
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: eslint-loader@2.2.1
npm WARN Found: eslint@7.15.0
npm WARN node_modules/eslint
npm WARN dev eslint@"7.15.0" from the root project
npm WARN 4 more (@vue/cli-plugin-eslint, babel-eslint, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer eslint@">=1.6.0 <7.0.0" from eslint-loader@2.2.1
npm WARN node_modules/eslint-loader
npm WARN eslint-loader@"^2.2.1" from @vue/cli-plugin-eslint@4.4.6
npm WARN node_modules/@vue/cli-plugin-eslint
npm WARN
npm WARN Conflicting peer dependency: eslint@6.8.0
npm WARN node_modules/eslint
npm WARN peer eslint@">=1.6.0 <7.0.0" from eslint-loader@2.2.1
npm WARN node_modules/eslint-loader
npm WARN eslint-loader@"^2.2.1" from @vue/cli-plugin-eslint@4.4.6
npm WARN node_modules/@vue/cli-plugin-eslint
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@achrinza/node-ipc@9.2.2',
npm WARN EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' },
npm WARN EBADENGINE current: { node: 'v18.13.0', npm: '8.19.3' }
npm WARN EBADENGINE }
然后设置
启动报错,设置下面进行运行
>set NODE_OPTIONS=--openssl-legacy-provider
F:\javaString11\RuoYi-Vue\ruoyi-ui>set NODE_OPTIONS=--openssl-legacy-provider
F:\javaString11\RuoYi-Vue\ruoyi-ui>npm run dev
至此可以使用