Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New installation unable to install dependencies #190

Open
Pheromon opened this issue Jun 3, 2023 · 6 comments
Open

New installation unable to install dependencies #190

Pheromon opened this issue Jun 3, 2023 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@Pheromon
Copy link

Pheromon commented Jun 3, 2023

I just did a new git clone, and checkout tag 1.11.0, when I try to install dependencies (npm install), I get this error and nothing gets done:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: material-ui@0.20.2
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!   peer react@"17.0.2" from react-dom@17.0.2
npm ERR!   node_modules/react-dom
npm ERR!     react-dom@"17.0.2" from the root project
npm ERR!     peer react-dom@"^16.8.0 || ^17.0.0 || ^18" from react-minimal-pie-chart@8.4.0
npm ERR!     node_modules/react-minimal-pie-chart
npm ERR!       react-minimal-pie-chart@"^8.2.0" from the root project
npm ERR!   2 more (react-markdown, react-minimal-pie-chart)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.4.0 || ^16.0.0" from material-ui@0.20.2
npm ERR! node_modules/material-ui
npm ERR!   material-ui@"^0.20.2" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peer react@"^15.4.0 || ^16.0.0" from material-ui@0.20.2
npm ERR!   node_modules/material-ui
npm ERR!     material-ui@"^0.20.2" 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.
@DEgITx
Copy link
Owner

DEgITx commented Jun 4, 2023

you probably not run with --force flag

npm install --force

@DEgITx DEgITx added the question Further information is requested label Jun 4, 2023
@Pheromon
Copy link
Author

Pheromon commented Jun 4, 2023

That worked thanks (albeit with a lot of warnings).
Is there a way to migrate the database from the previous version?

@Pheromon
Copy link
Author

Pheromon commented Jun 4, 2023

Anyway I can't run the server, I get this error:

[6/4/2023 6:40:50 AM] [system] Exception: Error: spawn /home/user/rats-search/searchd ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /home/user/rats-search/searchd',
  path: '/home/user/rats-search/searchd',
  spawnargs: [ '--config', '/home/user/rats-search/sphinx.conf', '--nodetach' ]
} Origin: uncaughtException

@DEgITx
Copy link
Owner

DEgITx commented Jun 4, 2023

Can you attach the full rats.log ?

@Pheromon
Copy link
Author

Pheromon commented Jun 5, 2023

I've it not available right now but I saved what I think was the problem:

[6/4/2023 6:52:52 AM.041] [ERROR] [system] Exception: Error: spawn /home/user/rats-search/searchd ENOENT

i.e.: the searchd daemon does not exist when doing "npm run server"

@DEgITx
Copy link
Owner

DEgITx commented Jun 6, 2023

this is consequence, not a problem. The search path of searchd is completly wrong, I need rats.log to figure out the reason. More likely you have some not specific arch of the system where you try to run it, or can be

git clone --recurse-submodules https://github.com/DEgITx/rats-search.git

missed recurse-submodules option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants