thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

Unable to install project #338

Closed iamharisb2 closed 1 year ago

iamharisb2 commented 1 year ago

I am creating a new project by using "npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate" command and if I don't install my project with typescript then it gives me this error. Screenshot attached. Can anyone look into it and provide me with a solution?

Screenshot (66)

aum-tcm commented 1 year ago

Indeed, cp do not exists in a Windows environment.

A workaround may be to use the same command in the WSL ?

Xigma101 commented 1 year ago

Currently having the same issue, WSL is not a workaround.

Xigma101 commented 1 year ago

If you are having this issue and have git installed, open git bash, cd to desired folder, enter "npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate" and if you are using Javascript, the issue will no longer be there. Hope this work around helps.

JeremyDolle commented 1 year ago

Thanks @Xigma101 ! Please @iamharisb2, let us know if it's working for you. It could be a part of a "troubleshooting section"

tahaAlgoace commented 1 year ago

@JeremyDolle this issue is not resolve yet I am facing this issue on mac in bash or zsh terminal also

Screenshot 2023-06-02 at 1 22 45 PM

JeremyDolle commented 1 year ago

Of course I have a quick fix solution. We use yarn in our script. Install it globally and It will work. I will fix by adding a flag for using npm or yarn but for now you will need to install yarn