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

Error on npm install #112

Closed
Sishasong opened this issue Aug 26, 2022 · 1 comment
Closed

Error on npm install #112

Sishasong opened this issue Aug 26, 2022 · 1 comment

Comments

@Sishasong
Copy link

Sishasong commented Aug 26, 2022

Hi there,

i'm trying to install node dependencies to update my PR for the accordion feature i got an ERESOLVE error with prettier package.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/prettier
npm ERR! dev prettier@"npm:[email protected]" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer prettier@">=2.0.0" from [email protected]
npm ERR! node_modules/eslint-plugin-prettier
npm ERR! dev eslint-plugin-prettier@"^4.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 /root/.npm/eresolve-report.txt for a full report.

After some research, i found this issues in gutenberg project WordPress/gutenberg#39208 that seems to be the same things.

After digging into wordpress-script, this package seems to be use only in format script which is not used in your project. IMO this dependency should be removed.

Best regards,
Célian

@tschortsch
Copy link
Member

You're right, I just pushed the updated npm dependencies to the master branch. npm install should now work again.

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

No branches or pull requests

2 participants