cmd command line/npm command line/Vue scaffolding installation (with illustrations)

Table of contents

1. cmd command line

cmd command

Two, npm command line

3. Vue scaffolding installation



1. cmd command line

First open the small black box:

The first step, win key + R key to open the run window

 The second step, enter cmd and press Enter

cmd command:

 switch drive letter

d: //Enter the d drive

f: //Enter F drive

Switch directory
cd directory address

Create directory
md directory address

Delete directory
rd directory address
rd /s /q silently delete directory and directory address

directory symbol

/ root directory./current
directory ../
upper directory

Help and Tips

help view command
help command view command usage

The first letter + tab prompts the folder of the current directory

Previous command
Next command

Other
ipconfig check ip
ping host/ip check the Unicom status with other hosts and ip
cls clear screen
calc open calculator
ctrl+c end current running command

Two, npm command line

Nodejs-based package management tool (plug-in download tool)

Install nodejs with npm

View version
node -v view node version
npm -v view npm version

initialize project
md mynpm create directory
cd mynpm enter directory
npm init initialize project
npm init -y quick initialize project

Installation abbreviation
i install
-D --save-dev
-S -save

global installation
Through global installation, all projects on the computer can use
npm i package name -g
npm i @vue/cli -g global installation vue scaffolding
to view the global Installation directory
npm root -g
local operation depends on
development and operation requires this package (plugin
npm i package name --save
npm i jquery --save
npm i jquery -S
local development depends on the package (plugin)
only in the development phase
npm i package name --save-dev
npm i less --save-dev
npm i less -D
 install multiple
npm i jquery bootatrap -S install the specified version npm i [email protected]
 

Update
npm update package name
update strategy
^xyz
x broken update (incompatible)
y new features (compatible)
z bug fix

eg: ^2.1.0 update will not exceed or equal to 3.0

Uninstall
npm r package name
npm uninstall package name
npm uninstall jquery package name

help
npm command -h
npm install -h

3. Vue scaffolding installation

Vue CLI is a complete system based on Vue.js for rapid development. Build interactive project scaffolding
through @vue/cli .

Install

npm install -g @vue/cli  OR yarn global add @vue/cli

view version

vue -V

Create project (install in current directory)

vue create project name

Copy the URL to the browser and see the page below, the project is successfully created

 

When creating a project, you can choose settings according to your needs

Guess you like

Origin blog.csdn.net/TeAmo__/article/details/123239875