node.js
下载

安装
node版本
npm
npm是什么
npm(Node Package Manager)是Node.js的包管理工具,用于管理JavaScript依赖包。它允许开发人员从npm注册中心安装、升级和删除库和工具。
在你提供的代码片段中,package.json
文件列出项目所需的依赖项和开发依赖项。例如,vue-router
和vue
都是项目的依赖项,这意味着项目使用了Vue.js框架以及其路由管理库。

npm版本
C:\Users\49354>npm -v 8.19.4
阿里镜像
npm config set registry https://registry.npmmirror.com

vue-cli
创建一个vue项目

创建一个工作空间

切换盘符
cd: change directory
cd d:

创建项目

vue项目开发
Hbuilder创建vue项目
打开vue-workspace目录

创建vue项目

vue项目的结构

pacakge.json

src(源代码)

页面开发
main.js

App.vue(单页面的管理页面。 )

创建vue项目
安装elementUI
npm下载

main.js引入elementUI
安装路由器
安装
npm i vue-router@3.5.3
