Nodemon the `punycode` module is deprecated in node js 21
DeniroBlack opened this issue ยท 2 comments
Hi. I upgrade my local node js from 20 to 21. After that, nodemon stopped working. Will it be fixed? Or can you tell me how I can fix it on my own?
(node:27) [DEP0040] DeprecationWarning: The "punycode" module is deprecated. Please use a userland alternative instead. at node:punycode:3:9 at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:397:7) at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:333:10) at loadBuiltinModule (node:internal/modules/helpers:101:7) at Function._load (node:internal/modules/cjs/loader:1000:17) at Module.require (node:internal/modules/cjs/loader:1234:19) at require (node:internal/modules/helpers:176:18) at Object.<anonymous> (/var/www/node_modules/node-fetch/node_modules/whatwg-url/lib/url-state-machine.js:2:18) at Module._compile (node:internal/modules/cjs/loader:1375:14) at node:internal/modules/cjs/loader:1434:10 url-state-machine.js:2 Error: write EPIPE at afterWriteDispatched (node:internal/stream_base_commons:160:15) at writeGeneric (node:internal/stream_base_commons:151:3) at Socket._writeGeneric (node:net:952:11) at Socket._write (node:net:964:8) at writeOrBuffer (node:internal/streams/writable:564:12) at _write (node:internal/streams/writable:493:10) at Socket.write (node:internal/streams/writable:502:10) at ReadableWorkerStdio.ondata (node:internal/streams/readable:1007:22) at ReadableWorkerStdio.emit (node:events:519:28) at ReadableWorkerStdio.emit (node:domain:488:12) { errno: -32, code: 'EPIPE', syscall: 'write' }
App without nodeman works good, but without nodeman I can't debugging ๐
Can you run and paste the results of this command:
npm ls punycode
nodemon doesn't use or include punycode.
$ egrep "nodemon|punycode" package-lock.json
"nodemon": "^3.0.2"
"node_modules/nodemon": {
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.2.tgz",
"nodemon": "bin/nodemon.js"
"url": "https://opencollective.com/nodemon"
$ npm ls punycode
2156@1.0.0 /Users/remy/dev/nodemon/issues/2156
โโโ (empty)
$ cat package.json
{
"name": "2156",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"nodemon": "^3.0.2"
}
}