Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build the environment of vue project

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of how to build the vue project environment, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to build the vue project environment. Let's take a look.

I. download and install node.js

Download and install nodejs on the official website, and npm will be bundled and installed automatically. The specific steps are omitted.

Second, express installation npm install express- gnpm install-g express-generator-g will not be installed to the global (pit) npm install express-generator-g global installation III. Installation teaching scaffolding

3.1 install or update global vue

Npm install vue-g

3.2 install or update global routing:

Npm install vue-router-g

3.3 installation of scaffolding

Npm install @ vue-cli-g4, webpack installation

4.1.webpack-cli installation

Npm I webpack-cli-g

4.2 View version:

Webpack-v

Tip:

Webpack: not installedwebpack-cli: 4.9.0webpack-dev-server not installed

4.3 webpack installation

Npm install webpack-save-dev / configure the global webpacknpm install webpack-save-dev

4.4 install webpack-dev-server

Npm install webpack-dev-server-g

Npm install vue-g

Install or update global routing:

Npm install vue-router-g

Install scaffolding

Npm install @ vue-cli-g 5. View version environment variable: echo% PATH% node version: node-vnpm version: npm-vvue version: vue- Vexpress version number: express-- versionwebpack version number: webpack-v6. Modify npm local warehouse: npm config set prefix "D:\ Develop\ nodejs\ node_global"-- savenpm config set cache "D:\ Develop\ nodejs\ node_cache"-- Sava VII, environment variables:

System:

NODE_PATH (added) D:\ Develop\ nodejs\ node_globa\ node_modules (pit: checking webpack-v error) D:\ Develop\ nodejs\ node_globa

Users:

Path (add) D:\ Develop\ nodejs\ node_cache (pit: checking webpack-v error report) D:\ Develop\ nodejs\ node_global this is the end of the article on "how to build the vue project environment". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to build the vue project environment". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report