-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error in create new app. #1639
Comments
Might be the wrong issue, but do you have Can you try making an expo project (like |
I have exactly the same issue - actually had it 2 weeks ago and gave up with ignite, but trying again now in some spare time.
Yes I have yarn:
Does the same work with --expo ? yes:
Then I removed my npx cache (i.e. where the error stack starts from) - C:\Users\user\AppData\Roaming\npm-cache_npx
This is on Windows 10, At the moment it seems ignite on Windows has got its matches wet ! PS - I also have an environment running that can already support react-native dev via react-native, Android Studio etc. So I'm assuming all the pre-reqs for ignite are in place, but I'm reviewing the "Setting up the development environment" tutorial to make sure. |
just having a dig in the code, and I can't actually make sense of the line numbers as its ts/compiled, but it must be this little snippet:
but this code runs for both expo and true native, so the issue must be above these lines.
So I imagine the issue is from here - the obvious assumption is that package.json is missing from the template. And ... I can see there's a debug option!, so I've used it:
and so the assumption is confirmed:
Hopefully someone with intimate knowledge of this repo can now take over and chase the issue down to a conclusion? |
seeing this:
|
FYI it worked when starting a new expo project |
strange thing, I've now got past the first apparent debug error message - that there is no package.json - by not trying to install in a folder-name which contains an underscore (a known foible of react-native-cli), but I'm still getting the exact same error as before (just a little later down the process)!
|
Hi all. |
@andrewlorenz I had problems when I used Node v14.16.0 with this (I'm on the M1 Mac, some of the node versions have been a bit wonky for me), downgrading to |
hey @jascination - thanks for the idea, but sadly no better:
|
hey @nirre7 - I tried "doctor" but it said this:
But given that my JDK IS version 8 (the 1.8.0_241 is misleading!) its not inspiring my confidence, though the other checks passed. |
Try: |
hey @nirre7 that command worked fine, all the way to the end.
I guess it could be react-native that's at fault, not ignite. |
Just for your interest, this command for me works
but if i run |
hey @adumat I've just tried something similar too and it also worked:
whereas this failed:
So there is something going awry with filenames on windows (but not linux/OSX) - no surprise there! |
i did this and it worked for me.
then, subsequent ignite new app seems to work
|
@dennis3124 I have try but won't work. Are you on windows? |
anyway, i have a stupid workaround. in file
with
|
this should shortcut ALL the issues on windows:
After its run, you just need to manually tidy up the "HelloWorld" references in the package.json (which is, as it turns out, where the ignite scripting to automagically do it goes wrong):
You just need to change these to match the project name you supplied to the init. |
Hi, Returning to the topic, using terminal in admin mode, i did this to solve:
I didn't try with a newer version of ignite-cli. PS#1: It still shows me the error if i use "APP" as the project name. PS#2: It works in the desktop folder (Windows). |
Hi all. I ran windows 10 via virtual box and only installed the latest NodeJS LTS and VS Code, then I ran: Could it be that you have and old version of ignitejs? Good luck! @araymoises That version of ignitejs and the boilerplate is old => https://shift.infinite.red/introducing-ignite-4-0-flame-1dfc891f9966 |
I had this same issue and managed to fix it by setting my default node version to 12.X with the following commands:
Hope this helps! EDIT: Reading through some of the others in the thread I think it might be that the ignite cli installed in my node 10 was out of date, as I had used it for a previous app a while back. Installing node 12 and re-running with that instance likely got a fresh version. That's my current hypothesis, at least |
This doesn't work on windows 10 with node 14.16.0, the environment has no problem. |
This seems works for now. |
I tried replaced that part to: I found out the root cause was happened here: × Downloading template I think this should be fixed in yarn. Not sure how to fix this yet. |
## [6.9.2](v6.9.1...v6.9.2) (2021-04-29) ### Bug Fixes * **windows:** Fix issue [#1639](#1639) -- remove "file://" from template address ([#1663](#1663) by [@aliassar](https://github.com/aliassar)) ([fcfcf2e](fcfcf2e))
Fixed in release https://github.com/infinitered/ignite/releases/tag/v6.9.2. |
These JS frameworks are so sh** even can't do a fresh installation , Hate JS forever |
Error in create new app.
I'm new with Ignite, i want to create a new project and it gives me this error. Any solution?
Steps to reproduce
The text was updated successfully, but these errors were encountered: