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

npm start encounters error #21

Closed
vikubin opened this issue Jul 5, 2021 · 2 comments
Closed

npm start encounters error #21

vikubin opened this issue Jul 5, 2021 · 2 comments

Comments

@vikubin
Copy link
Contributor

vikubin commented Jul 5, 2021

Describe the bug
npm start encounters error

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository
  2. Run: 'npm install'
  3. Run: 'npm start'
  4. See error:
C:\Users\XXXXX\WEB_Sync\electron-react-typescript-boilerplate>npm start

> electron-react-typescript-boilerplate@2.1.0 start C:\Users\XXXXX\WEB_Sync\electron-react-typescript-boilerplate
> npx concurrently 'npm run start:server' 'npm run start:electron' --kill-others --kill-others-on-fail

[0] ''npm' is not recognized as an internal or external command,
[0] operable program or batch file.
[1] 'run' is not recognized as an internal or external command,
[1] operable program or batch file.
[3] ''npm' is not recognized as an internal or external command,
[3] operable program or batch file.
[4] 'run' is not recognized as an internal or external command,
[4] operable program or batch file.
[3] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[1] run exited with code 1
--> Sending SIGTERM to other processes..
[0] 'npm exited with code 1
--> Sending SIGTERM to other processes..
[4] run exited with code 1
--> Sending SIGTERM to other processes..
[2] start:server' exited with code 1
--> Sending SIGTERM to other processes..
[5] start:electron' exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron-react-typescript-boilerplate@2.1.0 start: `npx concurrently 'npm run start:server' 'npm run start:electron' --kill-others --kill-others-on-fail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron-react-typescript-boilerplate@2.1.0 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:\Users\XXXXX\AppData\Roaming\npm-cache\_logs\2021-07-05T15_42_05_915Z-debug.log

Log File:
2021-07-05T15_42_05_915Z-debug_redacted.txt

Expected behavior
Successful launch of dev server and electron

Desktop (please complete the following information):

  • OS: Windows 10
@vikubin vikubin mentioned this issue Jul 5, 2021
@vikubin
Copy link
Contributor Author

vikubin commented Jul 5, 2021

Fix in PR: #22

@marceloaugusto80
Copy link
Owner

@philku solved the issue.

We should escape the double quotes like " and not use single quotes.

Anyways, @philku solution was much cleaner and clever.

start script is working now.

Thanks, @philku!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants