用vite-cil方法创建网易云项目
新建项目,搭建后端。
下载后端文件NeteaseCloudMusicApi-master到新建的目录下,每次启动项目时,要到此后端文件内打开终端输入指令node app.js启动后端。
打开NeteaseCloudMusicApi-master的父级目录的终端
npm install -g @vue/cli
vue create music
选第三个自己配置,如图:

? Check the features needed for your project:
Babel, Router, Vuex, CSS Pre-processors
如图:

? Choose a version of Vue.js that you want to start the project with 3.x
?Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Less
? Where do you prefer placing config for Babel, ESLint, etc.? In dedicated config files ?
Save this as a preset for future projects? No
cd music
npm i vue-router
npm run serve
浙公网安备 33010602011771号