-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
nodemon 2.0.17 not starting and showing require error #2030
Comments
Oops, seems that we opened two related on the same issue at the same time :) Linking here #2031 in case the other details could be useful. |
Same here
|
dupe of #2031 - will track there. |
Downgrading to nodemon 2.0.14 resolved for me in the meantime |
2.0.18 is available now - goes back to update-notifier@5.x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is the error shown when I start nodemon
npm WARN exec The following package was not found and will be installed: nodemon@2.0.17
2:40:33 PM - Found 0 errors. Watching for file changes.
/root/.npm/_npx/c08057651e53e122/node_modules/nodemon/bin/nodemon.js:15
require('update-notifier')({ pkg }).notify();
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /root/.npm/_npx/c08057651e53e122/node_modules/update-notifier/index.js from /root/.npm/_npx/c08057651e53e122/node_modules/nodemon/bin/nodemon.js not supported.
rettiwt-api-1 | [1] Instead change the require of index.js in /root/.npm/_npx/c08057651e53e122/node_modules/nodemon/bin/nodemon.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/root/.npm/_npx/c08057651e53e122/node_modules/nodemon/bin/nodemon.js:15:3) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.4.0
I am not using a local nodemon installation, but using npx to use it
The text was updated successfully, but these errors were encountered: