1、在构建时,发现警告了,升级npm到最新版
$ npm init vite vue-demo
√ Select a framework: » Vue
√ Select a variant: » TypeScript
Scaffolding project in D:\vscode\vue-demo...
Done. Now run:
cd vue-demo
npm install
npm run dev
npm notice
npm notice New major version of npm available! 8.19.2 -> 9.1.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.1.2
npm notice Run npm install -g [email protected] to update!
npm notice
$ npm install -g [email protected]