我在我的Angular项目中使用npm模块。
VsCode告诉我它已被弃用,https://nodejs.org/api/punycode.html#punycode_punycode进行了确认。
建议切换到“用户提供的”模块。那是什么?
其中有一个链接https://github.com/mathiasbynens/punycode.js,我尝试在我的package.json中包含它而不是“punycode”,但我收到了相同的错误。
The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.
建议切换到“用户提供的”模块。那是什么?
其中有一个链接https://github.com/mathiasbynens/punycode.js,我尝试在我的package.json中包含它而不是“punycode”,但我收到了相同的错误。
const punycode = require('punycode/');
? - undefinedimport punycode from "punycode/";
。 - undefined