'React js Project not successfully install ,How do fix

Folder structure Here

I will create react js project but not successfully install.Check this img

My version:- npm -v 8.6.0 node v16.14.2



Solution 1:[1]

It seems like it's detecting another package.json file, could you send your root folder (ReactJS) content, possibly it's detecting another package.json file. If it's the case create a different directory where the root has no project created in it. You can use --force attribute but that's dangerous and not recommended.

Try this:

cd /home/himal/Development 
mkdir new_app 
cd new_app
npx create-react-app my-app

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1