“Error: spawn cmd ENOENT” In Expo Init Project
I am starting a new React-Native Project using
expo init firstexpo
But I get this error at Command Prompt
Error: spawn cmd ENOENT
PS C:UsersAlextestingfirstexpo> expo start
[16:21:09] Starting project at C:UsersAlextestingfirstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:UsersAlextestingfirstexpo>
npm start error Cannot find module 'opn'
[16:38:49] Starting project at C:UsersAlextestingfirstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! empty-project-template@ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the empty-project-template@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAlexAppDataRoamingnpm-cache_logs2018-11-24T08_38_52_344Z-debug.log
I am very new to coding, can anyone tell me how can I solve the problem?
Thank you very much.
Downgrade to v28
node.js react-native npm expo enoent
|
show 1 more comment
I am starting a new React-Native Project using
expo init firstexpo
But I get this error at Command Prompt
Error: spawn cmd ENOENT
PS C:UsersAlextestingfirstexpo> expo start
[16:21:09] Starting project at C:UsersAlextestingfirstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:UsersAlextestingfirstexpo>
npm start error Cannot find module 'opn'
[16:38:49] Starting project at C:UsersAlextestingfirstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! empty-project-template@ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the empty-project-template@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAlexAppDataRoamingnpm-cache_logs2018-11-24T08_38_52_344Z-debug.log
I am very new to coding, can anyone tell me how can I solve the problem?
Thank you very much.
Downgrade to v28
node.js react-native npm expo enoent
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Try setting the expo version to 28.0.0 at your package.json file, then runnpm install
. Many users have reported thatexpo init
is broken for newer versions.
– romin21
Nov 26 '18 at 8:42
|
show 1 more comment
I am starting a new React-Native Project using
expo init firstexpo
But I get this error at Command Prompt
Error: spawn cmd ENOENT
PS C:UsersAlextestingfirstexpo> expo start
[16:21:09] Starting project at C:UsersAlextestingfirstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:UsersAlextestingfirstexpo>
npm start error Cannot find module 'opn'
[16:38:49] Starting project at C:UsersAlextestingfirstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! empty-project-template@ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the empty-project-template@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAlexAppDataRoamingnpm-cache_logs2018-11-24T08_38_52_344Z-debug.log
I am very new to coding, can anyone tell me how can I solve the problem?
Thank you very much.
Downgrade to v28
node.js react-native npm expo enoent
I am starting a new React-Native Project using
expo init firstexpo
But I get this error at Command Prompt
Error: spawn cmd ENOENT
PS C:UsersAlextestingfirstexpo> expo start
[16:21:09] Starting project at C:UsersAlextestingfirstexpo
[16:21:11] Expo DevTools is running at http://localhost:19002
[16:21:11] Opening DevTools in the browser... (press shift-d to disable)
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
PS C:UsersAlextestingfirstexpo>
npm start error Cannot find module 'opn'
[16:38:49] Starting project at C:UsersAlextestingfirstexpo
[16:38:52] Expo DevTools is running at http://localhost:19002
[16:38:52] Opening DevTools in the browser... (press shift-d to disable)
[16:38:52] Cannot find module 'opn'
[16:38:52] Set EXPO_DEBUG=true in your env to view the stack trace.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! empty-project-template@ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the empty-project-template@ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAlexAppDataRoamingnpm-cache_logs2018-11-24T08_38_52_344Z-debug.log
I am very new to coding, can anyone tell me how can I solve the problem?
Thank you very much.
Downgrade to v28
node.js react-native npm expo enoent
node.js react-native npm expo enoent
edited Nov 26 '18 at 9:15
Alex Chong
asked Nov 24 '18 at 8:54
Alex ChongAlex Chong
342
342
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Try setting the expo version to 28.0.0 at your package.json file, then runnpm install
. Many users have reported thatexpo init
is broken for newer versions.
– romin21
Nov 26 '18 at 8:42
|
show 1 more comment
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Try setting the expo version to 28.0.0 at your package.json file, then runnpm install
. Many users have reported thatexpo init
is broken for newer versions.
– romin21
Nov 26 '18 at 8:42
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Try setting the expo version to 28.0.0 at your package.json file, then run
npm install
. Many users have reported that expo init
is broken for newer versions.– romin21
Nov 26 '18 at 8:42
Try setting the expo version to 28.0.0 at your package.json file, then run
npm install
. Many users have reported that expo init
is broken for newer versions.– romin21
Nov 26 '18 at 8:42
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53456639%2ferror-spawn-cmd-enoent-in-expo-init-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53456639%2ferror-spawn-cmd-enoent-in-expo-init-project%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
do you have expo-cli installed in your project? can you delete your node_modules folder and run 'npm install'?
– kivul
Nov 24 '18 at 10:21
Yes, installed + expo-cli@2.4.0. Deleted node_modules folder and run npm install, same result. Error: spawn cmd ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19) at onErrorNT (internal/child_process.js:407:16) at process._tickCallback (internal/process/next_tick.js:63:19)
– Alex Chong
Nov 24 '18 at 11:29
ok, run 'npm install opn' and try again
– kivul
Nov 24 '18 at 11:33
Sorry for the late reply. + opn@5.4.0 added 2 packages from 1 contributor, updated 1 package and audited 22081 packages in 22.115s found 0 vulnerabilities But sadly, I still having the Error: spawn cmd ENOENT
– Alex Chong
Nov 25 '18 at 5:22
Try setting the expo version to 28.0.0 at your package.json file, then run
npm install
. Many users have reported thatexpo init
is broken for newer versions.– romin21
Nov 26 '18 at 8:42