forever: Error running forever.js on Windows - “'C:\Program' is not recognized as an internal or external command, operable program or batch file”
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
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 5
- Comments: 16 (2 by maintainers)
I am having this same problem. If you install version 1.0.0 it works.
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.
@sambragg If you type
dir /x
in the root of c:, you can see the short name of the directory.So, try the following instead: