本地node版本过高!!!
DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
1.在 nodejs v21.0.0 以上会出现如下提示
解决方法
npm install punycode --save
进入 node_modules
找到 tr46 文件夹中的 index.js
找到下面的代码
var punycode = require("punycode");
在punycode后面加上/
var punycode = require("punycode/");
第二种方法更改node版本号:
安装并使用nvm工具
更改node版本号:
例如nvm install node
nvm install 12.17.0