Skip to content
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

Getting error while creating a new Project #19638

Closed
2 tasks done
PawanManjani opened this issue Jun 9, 2018 · 5 comments
Closed
2 tasks done

Getting error while creating a new Project #19638

PawanManjani opened this issue Jun 9, 2018 · 5 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.

Comments

@PawanManjani
Copy link

PawanManjani commented Jun 9, 2018

Environment

Description

issue coming while creating new project

Steps to Reproduce

Expected Behavior

Actual Behavior

c:\ReactNativeProjects>react-native init AwesomeProject
This will walk you through creating a new React Native project in c:\ReactNative
Projects\AwesomeProject
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com
{ Error: spawnSync C:\Program Files\Java\jdk1.7.0_51 ENOENT
at _errnoException (util.js:992:11)
at spawnSync (child_process.js:579:20)
at execSync (child_process.js:635:13)
at run (C:\Users\abc\AppData\Roaming\npm\node_modules\react-native-cli\index
.js:294:5)
at createProject (C:\Users\abc\AppData\Roaming\npm\node_modules\react-native
-cli\index.js:249:3)
at init (C:\Users\abc\AppData\Roaming\npm\node_modules\react-native-cli\inde
x.js:200:5)
at Object. (C:\Users\abc\AppData\Roaming\npm\node_modules\react-n
ative-cli\index.js:153:7)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawnSync C:\Program Files\Java\jdk1.7.0_51',
path: 'C:\Program Files\Java\jdk1.7.0_51',
spawnargs:
[ '/d',
'/s',
'/c',
'"npm install --save --save-exact react-native"' ],
cmd: 'npm install --save --save-exact react-native',
file: 'C:\Program Files\Java\jdk1.7.0_51',
args:
[ 'C:\Program Files\Java\jdk1.7.0_51',
'/d',
'/s',
'/c',
'"npm install --save --save-exact react-native"' ],
options:
{ stdio: [ [Object], [Object], [Object] ],
shell: true,
windowsVerbatimArguments: true,
file: 'C:\Program Files\Java\jdk1.7.0_51',
args:
[ 'C:\Program Files\Java\jdk1.7.0_51',
'/d',
'/s',
'/c',
'"npm install --save --save-exact react-native"' ],
envPairs:
[ 'ALLUSERSPROFILE=C:\ProgramData',
'APPDATA=C:\Users\abc\AppData\Roaming',
'ChocolateyInstall=C:\ProgramData\chocolatey',
'ChocolateyLastPathUpdate=Sun May 20 16:56:46 2018',
'CLASSPATH=.;',
'CommonProgramFiles=C:\Program Files\Common Files',
'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
'CommonProgramW6432=C:\Program Files\Common Files',
'COMPUTERNAME=SONIYA',
'ComSpec=C:\Program Files\Java\jdk1.7.0_51',
'FP_NO_HOST_CHECK=NO',
'HOMEDRIVE=C:',
'HOMEPATH=\Users\abc',
'JAVA_HOME=C:\Program Files\Java\jdk1.8.0_172',
'LOCALAPPDATA=C:\Users\abc\AppData\Local',
'LOGONSERVER=\\SONIYA',
'NUMBER_OF_PROCESSORS=4',
'OS=Windows_NT',
'Path=C:\Users\abc\AppData\Roaming\npm;C:\Program Files\nodejs\;
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Fi
les (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Micro
soft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x8
6)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Yarn\bin\
;C:\Program Files\nodejs\npm;C:\Users\abc\AppData\Roaming\npm;C:\Users
\abc\AppData\Local\Yarn\bin;C:\ProgramData\chocolatey\bin',
'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
'PROCESSOR_ARCHITECTURE=AMD64',
'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
',
'PROCESSOR_LEVEL=6',
'PROCESSOR_REVISION=3a09',
'ProgramData=C:\ProgramData',
'ProgramFiles=C:\Program Files',
'ProgramFiles(x86)=C:\Program Files (x86)',
'ProgramW6432=C:\Program Files',
'PROMPT=$P$G',
'PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
,
'PUBLIC=C:\Users\Public',
'SESSIONNAME=Console',
'SystemDrive=C:',
'SystemRoot=C:\Windows',
'TEMP=C:\Users\abc\AppData\Local\Temp',
'TMP=C:\Users\abc\AppData\Local\Temp',
'USERDOMAIN=SONIYA',
'USERNAME=abc',
'USERPROFILE=C:\Users\abc',
'VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\',
'VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\C
ommon7\Tools\',
'windir=C:\Windows' ],
killSignal: undefined },
envPairs:
[ 'ALLUSERSPROFILE=C:\ProgramData',
'APPDATA=C:\Users\abc\AppData\Roaming',
'ChocolateyInstall=C:\ProgramData\chocolatey',
'ChocolateyLastPathUpdate=Sun May 20 16:56:46 2018',
'CLASSPATH=.;',
'CommonProgramFiles=C:\Program Files\Common Files',
'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
'CommonProgramW6432=C:\Program Files\Common Files',
'COMPUTERNAME=SONIYA',
'ComSpec=C:\Program Files\Java\jdk1.7.0_51',
'FP_NO_HOST_CHECK=NO',
'HOMEDRIVE=C:',
'HOMEPATH=\Users\abc',
'JAVA_HOME=C:\Program Files\Java\jdk1.8.0_172',
'LOCALAPPDATA=C:\Users\abc\AppData\Local',
'LOGONSERVER=\\SONIYA',
'NUMBER_OF_PROCESSORS=4',
'OS=Windows_NT',
'Path=C:\Users\abc\AppData\Roaming\npm;C:\Program Files\nodejs\;C:
\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsof
t SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)
\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Yarn\bin\;C:
\Program Files\nodejs\npm;C:\Users\abc\AppData\Roaming\npm;C:\Users\ab
c\AppData\Local\Yarn\bin;C:\ProgramData\chocolatey\bin',
'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
'PROCESSOR_ARCHITECTURE=AMD64',
'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel',
'PROCESSOR_LEVEL=6',
'PROCESSOR_REVISION=3a09',
'ProgramData=C:\ProgramData',
'ProgramFiles=C:\Program Files',
'ProgramFiles(x86)=C:\Program Files (x86)',
'ProgramW6432=C:\Program Files',
'PROMPT=$P$G',
'PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\',
'PUBLIC=C:\Users\Public',
'SESSIONNAME=Console',
'SystemDrive=C:',
'SystemRoot=C:\Windows',
'TEMP=C:\Users\abc\AppData\Local\Temp',
'TMP=C:\Users\abc\AppData\Local\Temp',
'USERDOMAIN=SONIYA',
'USERNAME=abc',
'USERPROFILE=C:\Users\abc',
'VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\',
'VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Comm
on7\Tools\',
'windir=C:\Windows' ],
stderr: null,
stdout: null,
pid: 0,
output: null,
signal: null,
status: null,
error: null }
Command npm install --save --save-exact react-native failed.

@react-native-bot
Copy link
Collaborator

It looks like your issue may be incomplete. Are all the fields required by the Issue Template filled out?

If you believe your issue contains all the relevant information, let us know in order to have a maintainer remove the No Template label.

@PawanManjani
Copy link
Author

Updated plz check.

@react-native-bot
Copy link
Collaborator

It looks like your issue may be missing some necessary information. Can you run react-native info and edit your issue to include these results under the Environment section?

@hramos hramos added the Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. label Jun 9, 2018
@react-native-bot
Copy link
Collaborator

Please use Stack Overflow for this type of question.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Jun 9, 2018
@PawanManjani
Copy link
Author

F:\DATA\ReactNativeProjects\AwesomeProject>react-native info
Command info unrecognized. Make sure that you have run npm install and that
you are inside a react-native project.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 9, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants