Yarn command gives error ..\..\package.json: Name contains illegal characters

739 Views Asked by At

Here is what my code looks like: enter image description here

First and foremost,i'm new to react.js and i'm just learning about yarn and I notice no matter which follow along I watch their react-app always gets a yarn.lock file and mine never does. Currently I'm using yarn version 1.22.19, node version 14.20.1(someone suggested that but no matter which version of node I switch too newer or older it doesn't help), and npm version 6.14.17.

1

There are 1 best solutions below

2
On

Try replace "name": "personal_portfolio_3" to "name": "personal-portfolio-3"