npm i 时的错误:
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm ERR! Invalid package name "_@babel_code-frame@7.15.8@@babel": name cannot start with an underscore; name can only contain URL-friendly characters
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wizard\AppData\Local\npm-cache_logs\2021-10-09T02_59_05_672Z-debug.log
法一:
将npm源改成cnpm
法二:
删了node_modules,重新npm i