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
v2.0.8 [Windows 10] globally installed nodemon broken (looking for windows-kill.exe locally) #1872
Comments
cc'ing @countzero - looks like this is simple to replicate, would be good to solve this quickly - I might be able to work it out too myself… |
@Ericarthurc thanks for the clear explanation 👍 |
Glad to see the issue's been raised here (didn't find anything related to it until I landed here). I had installed nodemon globally today, and faced the same problem whenever I updated my code.
|
For my own reference, this is the line in question: https://github.com/remy/nodemon/pull/1853/files#diff-5421faa69288694e0e190b2e6108ec30df01af1b84c6c2d68274f2a31596768eR350 Needs to be "smart". |
Can folks here try both local and global installs of nodemon@debug - I'm trying to get my local windows environment running so I can test it myself too. To install the test version:
|
I'm 90% sure this is fixed in the debug build so I'm going to ship it. |
🎉 This issue has been resolved in version 2.0.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Oups, my bad... A relative path to the executable makes sense! @remy thanks for merging and fixing it so quickly! |
With the new 'windows-kill' merge in version 2.0.8 it brakes globally installed nodemon restarts. It says it is looking for the windows-kill binary in the local node_modules folder, but obviously if I am running nodemon from a global install, it's package wont be in the local node_modules
Here is the error I receive; and you can see I dont have nodemon installed locally on this project


Here is the same project using nodemon 2.0.7; and the global nodemon works fine

nodemon -v
: 2.0.8node -v
: 16.4.0Steps to reproduce
Install nodemon with
npm i -g npm@latest
, verify its version 2.0.8 withnodemon -v
then run nodemon without a local project installI want to clarify, that a local install within the project will work with v2.0.8; its just when you try to run it from a global only install
The text was updated successfully, but these errors were encountered: