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
Help needed : Test stopped working due to npm error #210
Comments
remove Bug label |
Hello, @ramonfincken. This probably means that you have an outdated version of some software needed. The first thing is checking the Node.js version. It should be at least 16.x (recommended 18.x) for the actual WordPress version. If it's not, upgrade it to one of those versions, and it should work just fine. If it doesn't work, please, ping again and I'll help you with the next steps :) |
We are on cloudlinux cpanel. Even when entering /prepare with [prepare (18)] [myuser@vm prepare]$ node -v it breaks [prepare (18)] [myuser@vm prepare]$ npm install npm ERR! A complete log of this run can be found in: /home/myuser/npm-cache/_logs/2024-04-02T18_54_34_124Z-debug-0.log LOG -> eresolve log: npm resolution error reportWhile resolving: WordPress@6.6.0 Could not resolve dependency: Fix the upstream dependency conflict, or retry |
can't we download some prepared archive ? as we only run PHP unit tests, we do not run any javascript right ? |
Installed it a another server and now it runs. |
First of all: I am not friends with npm,npm/node, it is a black box to me.
I need some guidance to get the runner working again.
So ... this happens now:
cd '/home/myuser/prepare'; npm install && npm run build
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: WordPress@6.5.0
npm ERR! Found: prettier@2.6.2
npm ERR! node_modules/prettier
npm ERR! dev prettier@"npm:wp-prettier@2.6.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@">=3" from @wordpress/prettier-config@3.8.1
npm ERR! node_modules/@wordpress/prettier-config
npm ERR! dev @wordpress/prettier-config@"3.8.1" 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/runnervm194h/npm-cache/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runnervm194h/npm-cache/_logs/2024-03-05T15_08_12_802Z-debug-0.log
Error: Failed to perform operation.
The text was updated successfully, but these errors were encountered: