5 reports and solutions encountered by Vue installation

Preface

This blog post will not teach you how to install VUE, but will inform 5 problems that may encounter during installation

5 Info

1: If you use the Vue -V query, the prompt does not find the instruction when you install the VUE, which may be you didn’t have a Vue-CLI scaffold (Vue-CLI to quickly create the Vue project)

vue安装遇到的5个报错及解决方法 2: Vue Installing Taobao mirror timing report, prompting invalid configuration, must be a completely legal HTTP address, because I added 1 space in front of the URL, here Do not have spaces vue安装遇到的5个报错及解决方法

Note: After installing Taobao mirror, you need to use the npm to replace it, but it is recommended to install the module and plug-in CNPM, package and start VUE with npm

( CNPM is domestic mirror, the NPM server is in foreign countries, but the solid CNPM is installed faster, but may have no more expensive issues in time.)

3 : If you use the npm run dev command to run error, prompt does not have such a file or directory, you need to create a project vue安装遇到的5个报错及解决方法

Using Vue Init WebPack Vue_test (Vue_Test is the project name Create a project, then select, vue安装遇到的5个报错及解决方法

does not appear (Y / N) let you choose whether or not the option is installed directly, Y is installation, N is not installed

4: If entering the project directory, enter the NPM Run Dev prompt not to find the project, indicating whether your project path is incorrect, check if the project path and the input command are correct

vue安装遇到的5个报错及解决方法 Here It is the project path input incorrectly, directly copying path paste to git bash (CMD equivalent to Windows) path slash will become ‘\’, actually use ‘/’,

Note: At the git bash copy project path can’t paste directly, click the mouse wheel to paste

vue安装遇到的5个报错及解决方法 5: When entering npm install installation and dependent package, if There is a chart prompt

12959 packages found 12 vulnerabilities (7 medium, 5 high-risk) run `npm audit fix` to repair them,

or run` npm audit` To get more information, you can enter the npm audit fix fix here

will then appear shown below, inform you that some of the vulnerabilities, you need to enter NPM AUDIT Fix –force further repair

vue安装遇到的5个报错及解决方法

Then see the following prompt can be

vue安装遇到的5个报错及解决方法

last when you enter NPM AUDIT See the picture below, you have completely repaired the vulnerability

vue安装遇到的5个报错及解决方法

Add:

1: Automatically open the browser setting after running NPM Run DEV ( By default, manual open) vue安装遇到的5个报错及解决方法

config-index.js, then find AutoOpenBrowser: false, change false to true

2: If you want to stop the VUE, don’t want to repeat each time The following three steps

CD “item path”

NPM Run DEV

can directly Ctrl + C will appear shown below, According to the prompt Y, simply need to enter the NPM Run DEV

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment