-
Notifications
You must be signed in to change notification settings - Fork 395
You can now use the new CLI to create a project 🎉 : npx react-native init MyApp --template react-native-template-typescript@next
#56
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
Comments
Expected BehaviorThe project would initialize correctly after following the instructions described here Observed BehaviorI am running into the same issues as #38 and #52 and for whatever reason, the 'fix' in #38 isn't working for me. Reproducible Error
Environment infoReact native info output: System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
Memory: 7.94 GB / 15.89 GB
Binaries:
Node: 12.8.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Users\nmgs\scoop\apps\yarn\current\Yarn\bin\yarn.CMD
npm: 6.10.2 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.4.0.0 AI-183.6156.11.34.5692245 react-native: 0.60.5 ^ This is what it says in package.json. Strangely enough when i run: Steps To Reproduce
I have tried both:
AND
Try to create a project using either the getting started method of:
OR the fix posted by @emin93 (referenced at the head of the issue) :
|
Hi, this is now fixed in #59, if you still encounter this problem I will reopen this. Please use the fix for now. |
Hi, I have used the following command: √ Downloading template
|
@Yashas0796 You have to uninstall |
I had the exact same issue as @Yashas0796 . The following exact commands (in this following order) resolved it. |
@roybarman please don't do |
I had the same problem and i change the project path from the disk C to D, it seems like the problem is that i tried to install in the desktop and there is any problem. |
I'm running into this issue of when I run
|
Any solution for this issue. It seems its trying to download templates to C:\Users{userName}\AppData\Local\Temp\rncli-init-template-XXXXXX, but within that folder, I can't see anything. After a second it had been removed. So it says cant find the template... |
thanks, I followed commands and it done well. |
I think I found a solution that works for me while only using npx (as globally installing it seems to be something not advised by the dev team). You have to use either CMD, or Powershell + running the following command If it doesn't work even after adjusting with this, I could post my Node and npm version here and see if that might have something to do with it? Anyway, I tried to create a regular, and typescript project both in PS and cmd, and they worked fine with the following commands once I adjusted for the above:
Extra Info: This came about thanks to having the 'cannot find module' error, and trying to install yarn (after trying out everything to not have to install stuff via npm globally), and finding out that I am not able to run scripts even on an admin powershell (been only trying it out on Powershell!!).
|
error showing in my cmd: what can i do Microsoft Windows [Version 10.0.18363.900] C:\Users\Gourab Banik\Desktop\New folder>npx react-native init MyTestApp TypeError: Cannot read property 'loaded' of undefined C:\Users\Gourab Banik\Desktop\New folder> |
You can now use the new CLI to create a project 🎉 :
npx react-native init MyApp --template react-native-template-typescript@next
Originally posted by @emin93 in #38 (comment)
The text was updated successfully, but these errors were encountered: