配置vue前端框架

2023-07-28  本文已影响0人  ljzza

windows+R cmd进入终端

npm set registry https://registry.npm.taobao.org/

npm config list

cd进入要安装在文件夹

npm init vue@latest

Ok to proceed? (y) y
Vue.js - The Progressive JavaScript Framework
√ Project name: ... vue-project
√ Add TypeScript? ... No
√ Add JSX Support? ... No
√ Add Vue Router for Single Page Application development? ... Yes
√ Add Pinia for state management? ... Yes
√ Add Vitest for Unit Testing? ... No
√ Add an End-to-End Testing Solution? » No
√ Add ESLint for code quality? ... No

cd vue-project

npm install

npm run dev

打开HBuilderX 添加vue-demo这个文件夹 运行 运行到终端 2 npm run dev 内置浏览器外置浏览器无所谓

上一篇 下一篇

猜你喜欢

热点阅读