acxz / pkgbuilds

PKGBUILDs for Arch Linux
25 stars 44 forks source link

[python-mlflow] unable to resolve npm modules/deps #187

Closed acxz closed 1 year ago

acxz commented 2 years ago
==> Starting build()...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: js@0.1.0
npm ERR! Found: eslint@7.32.0
npm ERR! node_modules/eslint
npm ERR!   eslint@"^7.23.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.8.0" from eslint-config-airbnb-base@12.0.2
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR!   eslint-config-airbnb-base@"~12.0.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /home/acxz/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/acxz/.npm/_logs/2022-05-17T20_08_30_473Z-debug-0.log
==> ERROR: A failure occurred in build().
    Aborting...
123-123-nil commented 1 year ago

Same issue.

AndreasHoermandinger commented 1 year ago

I made it work for mlflow 2.1.1 by using yarn, like stated in the mlflow docs (https://github.com/mlflow/mlflow/tree/master/mlflow/server/js) and by adding export NODE_OPTIONS=--openssl-legacy-provider . Shall I PR?

acxz commented 1 year ago

@AndreasHoermandinger please do so! I'm sure many folks will appreciate it.