Try using ./node_modules/.bin/nodemon and let us know if it worked…
it didnt work in cmd but when i tried it in git bash, it worked
then i put it in a bat file and that also worked
But the problem i have to keep putting the nodemon and .bin folders into node_modules and a load of other folders that it asks for and it can get really annoying
I updated Node from 10.16.0 to 10.16.3 and now it works again fine.
I have the same issues as you guys, never have had this issue before. I am currently on 10.16.3 although and its still broken.
This issue is related to your node configuration. It's not be set to work for globally installed files (not sure how though, I don't use windows).
That error is telling you that Windows doesn't know how to execute the nodemon command. If you try node ./node_modules/.bin/nodemon I'm pretty sure it'll work (I'll reopen this issue if it doesn't).
If prefixing with node, it means that there's a machine setup problem, rather than nodemon.
If it doesn't work prefixed with node, then there's something else at play and I'll reopen.
remy changed the title Nodenom not Working nodemon' is not recognised as an internal or external command, operable program or batch file.
Sep 5, 2019remy changed the title nodemon' is not recognised as an internal or external command, operable program or batch file. 'nodemon' is not recognised as an internal or external command, operable program or batch file.
Sep 5, 2019Something is very wrong. I install Node for Windows using the official installer (without installing the additional tools). I run the global install command for nodemon. I see there is a new folder for nodemon in the relevant global node_modules folder. However, Windows (8.1) still cannot find nodemon.
Windows can execute node itself because there is a batch file for it. However, aside from a couple of other batch files, there's no other executable, and no executable for nodemon. The nodemon binary is not a binary but a JavaScript file. Nevertheless, there's nothing equivalent to a wrapper that runs node nodemon post-install.
This issue is related to your node configuration. It's not be set to work for globally installed files (not sure how though, I don't use windows).
That error is telling you that Windows doesn't know how to execute the nodemon command. If you try node ./node_modules/.bin/nodemon I'm pretty sure it'll work (I'll reopen this issue if it doesn't).
If prefixing with node, it means that there's a machine setup problem, rather than nodemon.
If it doesn't work prefixed with node, then there's something else at play and I'll reopen.
It worked thank you
it didnt work in cmd but when i tried it in git bash, it worked
then i put it in a bat file and that also worked
you
have to do C:\>"./node_modules/.bin/nodemon" -v
in windows
Actually in 2021 I had the same problem, the DOCS should be made explicit to tell Windows users to use back-slash
$./node_modules/.bin/nodemon
should be ON WINDOWS
.\node_modules.bin\nodemon
** Does not only apply to this Lib only, lots of examples, tutes out there are written by a Mac/Linux user for other Mac/Linux users.
I'm getting the same error, howto fix this issue?