Hi
Installed version 2 on win10 pro and checked all dependecies. With exception of maps I had ignite 1 sample running using genymotion. When I run ignite new PizzaApp nothing is generated in folder. Note: I also posted on slack,
Thanks
John
Thanks for the report John. We'll take a look at running from Windows. Probably something small I overlooked.
I'm looking to move an app using Native Starter Pro(4.0) and already find the support community (slack and github) a notch above. Also I just found out about the following cmd and tracking now.
C:\React\ignite2>ignite doctor
System
platform win32
arch x64
cpu 4 cores Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
directory C:\React\ignite2
JavaScript
node 7.7.1 C:\PROGRAM FILES\NODEJS\NODE.EXE
npm 4.1.2 C:\PROGRAM FILES\NODEJS\NPM.CMD
yarn 0.21.3 C:\USERS\JOHN\APPDATA\ROAMING\NPM\YARN.CMD
React Native
react-native-cli 2.0.1
Ignite
ignite 2.0.0-beta.1 C:\USERS\JOHN\APPDATA\ROAMING\NPM\IGNITE.CMD
vvv -----[ DEBUG ]----- vvv
{ Error: Command failed: java -version
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
at ChildProcess.exithandler (child_process.js:210:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
killed: false,
code: 2,
signal: null,
cmd: 'java -version',
stderr: 'Error: Registry key \'Software\JavaSoft\Java Runtime Environment\'\CurrentVersion\'\r\nhas value \'1.8\', but \'1.7\' is required.\r\nError: could not find java.dll\r\nError: Could not find Java SE Runtime Environment.\r\n' }
^^^ -----[ DEBUG ]----- ^^^
Oh that's interesting. That error looks like it's triggered by running ignite doctor. Do you get the same error if you just type java -version from the command line?
What do you see if you run ignite new HelloJohn --debug?
An unfair headstart for your React Native apps.
https://infinite.red/ignite
:fire: igniting app PizzaApp
16:09:24 [ignite] making directory PizzaApp
16:09:24 [ignite] switched directory to C:\React\ignite2\PizzaApp
16:09:24 [ignite] running boilerplate: ignite boilerplate-install ir-boilerplate-2016 PizzaApp --debug
16:09:24 [ignite] error running boilerplate
16:09:24 [ignite] undefined
16:09:24 [ignite] cleaning temporary files
16:09:24 [ignite] finished running new
C:\React\ignite2> (edited)
C:\React\ignite2>java
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'
has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
C:\React\ignite2>
Odd thing is that 1.7 is no longer available. ReInstalling with jdk-8u121-windows-x64.exe
Looks like there's 2 issues here.
Issue 1 is the boilerplate isn't getting run properly. I was able to reproduce that here. We'll patch that up.
Issue 2 looks like java isn't setup properly to run from the command line. Maybe consider re-installing Java? Are you able to run react-native android ok from normal apps?
Oops.. haha. I posted at the same time as you. Ok. Sounds good.
yes I've had no major problems with react-native android
I finally followed this https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html
Seems like java is fixed
C:\React\ignite2>ignite doctor
System
platform win32
arch x64
cpu 4 cores Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
directory C:\React\ignite2
JavaScript
node 7.7.1 C:\PROGRAM FILES\NODEJS\NODE.EXE
npm 4.1.2 C:\PROGRAM FILES\NODEJS\NPM.CMD
yarn 0.21.3 C:\USERS\JOHN\APPDATA\ROAMING\NPM\YARN.CMD
React Native
react-native-cli 2.0.1
Ignite
ignite 2.0.0-beta.1 C:\USERS\JOHN\APPDATA\ROAMING\NPM\IGNITE.CMD
Android
java - C:\PROGRAMDATA\ORACLE\JAVA\JAVAPATH\JAVA.EXE
android home - C:\Users\john\AppData\Local\Android\sdk
==============
C:\WINDOWS\system32>java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
C:\WINDOWS\system32>
Sweet!
Still working on the other issue. It's happening when shelling out to run react-native link on Windows. Not quite sure why some react-native commands work and some don't.
I'm getting this issue as well. Thanks for looking into it!
Edit:
I ran with --debug and am seeing the following.
馃敟 igniting app testIgnite
18:42:45 [ignite] making directory testIgnite
18:42:45 [ignite] switched directory to C:\Users\mwarg\projects\testIgnite
18:42:45 [ignite] running boilerplate: ignite boilerplate-install ir-boilerplate-2016 testIgnite --debug
18:42:45 [ignite] error running boilerplate
18:42:45 [ignite] undefined
18:42:45 [ignite] cleaning temporary files
18:42:45 [ignite] finished running new
I doubt that helps much, but does this produce a log file that I can provide?
No, unfortunately that log files doesn't exist. We're tracking that issue here #623. Logging is something I believe should be added to gluegun as well.
This line is causing the grief. Seems to not want to execute in a grandchild process. Been trying a bunch of things, but no luck so far.
running ignite 2.0 on windows 10, and I got same error.
Same issue here and now when I run "ignite generate component Mycomponent" on a folder with an app generated with v1.9..6 it says that the command has to be run on a ignite-compatible directory.
I tryed to downgrade to version 1.9.6, but I get the same error about non ignite-compatible directory.
I'm working on a fix for Windows for beta 2.
Alrighty crew. Please grab the latest version. Beta 3. npm i -g ignite-cli. This fixes a few issues outstanding on Windows.
Please let me know if you have any issues with it.
thanks, it worked
Most helpful comment
Alrighty crew. Please grab the latest version. Beta 3.
npm i -g ignite-cli. This fixes a few issues outstanding on Windows.Please let me know if you have any issues with it.