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

npm run setup fails #3062

Open
MichaelSel opened this issue May 15, 2022 · 2 comments
Open

npm run setup fails #3062

MichaelSel opened this issue May 15, 2022 · 2 comments

Comments

@MichaelSel
Copy link

MichaelSel commented May 15, 2022

Description

npm run setup fails with npm v8.10.0 and node v18.1.0
Instead, it yields a ERESOLVE unable to resolve dependency tree error.

Running it with the --legacy-peer-deps flag produces

npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]. 

Steps to reproduce

On a windows machine (perhaps on other operating systems as well) typing npm run setup into terminal results in an error.

Expected behavior
The initial setup of the project should execute

Screenshots
image

Versions

  • React-Boilerplate: 4.0.0
  • Node/NPM: v18.1.0 / v8.10.0
  • Browser: N/A
@MichaelSel
Copy link
Author

MichaelSel commented May 15, 2022

Downgrading to Node v16.15.0

In package.json I added the --legacy-peer-deps flag to "presetup": "npm i chalk shelljs"
I added the same flag in /internals/scripts/setup after npm install
Finally, back in package.json I added

NODE_OPTIONS=--openssl-legacy-provider to the start script.

This solves it for me.

@muntiMedia
Copy link

muntiMedia commented Jul 18, 2022

reinstall node or clean the catches
npm cache clean --force

and then npm add --legacy-peer-deps

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