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

Parcel Install Failes due to Upstream Dependency Conflict #9507

Closed
RentecJeremy opened this issue Jan 26, 2024 · 1 comment
Closed

Parcel Install Failes due to Upstream Dependency Conflict #9507

RentecJeremy opened this issue Jan 26, 2024 · 1 comment

Comments

@RentecJeremy
Copy link

🐛 Parcel Can Not Install

This fails.
npm install --save-dev parcel

🤔 Expected Behavior

npm install --save-dev parcel should succeed without issue

😯 Current Behavior

npm install --save-dev parcel fails

Output from eresolve-report.txt

# npm resolution error report

2024-01-26T17:57:44.345Z

Found: [email protected]
node_modules/svgo
  svgo@"^2.4.0" from @parcel/[email protected]
  node_modules/@parcel/optimizer-htmlnano
    @parcel/optimizer-htmlnano@"2.11.0" from @parcel/[email protected]
    node_modules/@parcel/config-default
      @parcel/config-default@"2.11.0" from [email protected]
      node_modules/parcel
        dev parcel@"*" from the root project
  svgo@"^2.4.0" from @parcel/[email protected]
  node_modules/@parcel/optimizer-svgo
    @parcel/optimizer-svgo@"2.11.0" from @parcel/[email protected]
    node_modules/@parcel/config-default
      @parcel/config-default@"2.11.0" from [email protected]
      node_modules/parcel
        dev parcel@"*" from the root project

Could not resolve dependency:
peerOptional svgo@"^3.0.2" from [email protected]
node_modules/htmlnano
  htmlnano@"^2.0.0" from @parcel/[email protected]
  node_modules/@parcel/optimizer-htmlnano
    @parcel/optimizer-htmlnano@"2.11.0" from @parcel/[email protected]
    node_modules/@parcel/config-default
      @parcel/config-default@"2.11.0" from [email protected]
      node_modules/parcel
        dev parcel@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

🔦 Context

Creating a brand new project and trying to get Parcel working

💻 Code Sample

On Windows 10, navigate to your projects directory, and using PowerShell do the following.

> mkdir parcel-test
> cd .\parcel-test\
> npm install --save-dev parcel

🌍 Your Environment

Software Version(s)
Parcel NA
Node node -v: v15.3.0
npm/Yarn npm -v: 7.0.14
Operating System Windows 10
@RentecJeremy
Copy link
Author

RentecJeremy commented Jan 26, 2024

I'm going to close this since I tried again with updated node and npm versions and it worked well.

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

1 participant