question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running forever.js on Windows - “'C:\Program' is not recognized as an internal or external command, operable program or batch file”

See original GitHub issue

I am trying to run forever.js via the Windows command prompt and I get the following output:

>npm i -g forever

/my-project>forever start index.js

Log output:

'C:\Program' is not recognized as an internal or external command, operable program or batch file

I think it’s something to do with the PATH that forever is using for the node binary, but I don’t know how to fix it…

Link to my question on Stack Overflow

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
smt9020commented, Feb 10, 2020

I am having this same problem. If you install version 1.0.0 it works.

1reaction
kibertoadcommented, Mar 1, 2020

I’ve just added a test that tries replicating this issue: https://github.com/foreversd/forever/pull/1068 It works fine both locally (Windows 10) and in CI. If someone could provide a reliable repro for the problem, that would be fantastic.

That said, I’m pretty sure problem is caused by https://github.com/foreversd/forever-monitor/pull/145, but would be great if I could have a reproduction to confirm before doing any changes, that hiding that change behind an option would indeed help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error running forever.js on Windows - “'C:\Program' is not ...
Error running forever.js on Windows - “'C:\Program' is not recognized as an internal or external command, operable program or batch file”
Read more >
2004-September.txt
... with\ a\ space/test.bat 'c:Program' is not recognized as an internal or external command, operable program or batch file. If you enable "set...
Read more >
Tango Controls Documentation
C:Program is not recognized as an internal or external command, operable program or batch file. * Check if you don't forget about the ......
Read more >
Cprogram is not recognized as an internal or external ...
Jun 16, 2018 · DB2CMD fails with 'C:\Program' is not recognized as an internal or external command, operable program or batch file.
Read more >
Nodemodules is not recognized as an internal or external ...
DB2CMD fails with 'C:\ Program ' is not recognized as an internal or external command, operable program or batch file . Cause The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found