Please follow my official account [Jizhi Vision] for more notes to share

Hi, I’m Jizhi Vision. This article introduces how to install ubuntu Vue and create a project.

Vue is a set of progressive frameworks for building user interfaces, with a focus on the view layer, that are easy to get started with and easy to integrate with third-party libraries and existing projects.

So let’s start.

1 Ubuntu Install vue

Install the Node version management tool NVM:

Sudo apt to get the update sudo apt install curl curl - o - https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh |  bash source ~/.bashrcCopy the code

Install Node using NVM:

#Check the official version of node that can be installed
nvm ls-remote

#Install the execution version of Node, for example, NVM install v10.15.2
nvm install <version>

#Uninstall node, for example, NVM uninstall v10.15.2
nvm uninstall <version>

#View the list of installed Nodes
nvm ls

#Switch the Node version, for example, NVM use v10.15.2
nvm use <version>

#Set the default version. If this is not set, node is not started by default at startup.NVM alias default v10.15.2
#View the current version
nvm current
Copy the code

Nodejs package Manager NPM (Node Package Manager) is installed automatically after installing Node.

#View the NPM version
npm --version

#View the default Registry
npm config -g get registry 

#Configuring Accelerated Mirroring
npm config -g set registry https://registry.npm.taobao.org
Copy the code

Finally, vUE installation:

#Install commandNPM install -g@vue /cli NPM install -g@vue /cli-init # vue2
#After the installation, you can view the version
vue -V 
Copy the code

2 Creating a VUE project

Create a vUE instance project:

vue create ginessential-vue
Copy the code

Then make some choices, as follows:

It will then prompt you:

cd ginessential-vue
yarn serve
Copy the code

Display:


Ok, the above shared ubuntu vue installation and project creation method, I hope my sharing can help you learn a little.


[Public Account transmission]

[Web] Ubuntu Vue installation and Project Creation