nodemon install error “No valid versions available for timed-out”

Official issue: https://github.com/npm/registry/issues/255 Official status: https://status.npmjs.org/incidents/41zfb8qpvrdj Several packages including “require-from-string” are currently unavailable. We are aware of the issue and are working to restore the affected user and packages. Please do not attempt to republish packages, as this will hinder our progress in restoring them. Update from NPM: Resolved We apologize for the temporary unavailability … Read more

Nodemon – exclusion of files

In order to make NodeMon ignore a bunch of files from monitoring, you can start it as nodemon –ignore PATTERN [–ignore PATTERN2] where PATTERN is the name of a specific file, directory, or wildcard pattern. Make sure that if you use a wildcard, it is escaped. For example nodemon –ignore ‘lib/*.js’ –ignore README Alternatively, if … Read more

How can nodemon be made to work with WSL 2?

Root cause: inotify is not fully supported in the 9P filesystem protocol on WSL2. There are several github issues on the WSL project related to this, but perhaps the most relevant is #4739. Possible Workarounds: Try nodemon -L (a.k.a. –legacy-watch) as Simperfy suggested. Try running from the default ext4 filesystem (e.g. mkdir -p $HOME/Projects/testserver). Note … Read more