Home  >  Article  >  Web Front-end  >  How to run other people's vue.js

How to run other people's vue.js

coldplay.xixi
coldplay.xixiOriginal
2020-12-03 16:07:133234browse

Running method: First download the node software from the node.js official website and install it; then use the cd command to enter the project root directory; then use the command [npm install] to install the project dependencies; finally use [npm run serve] or Just run the project with the [npm run dev] command.

How to run other people's vue.js

The operating environment of this tutorial: Windows 7 system, Vue version 2.9.6, Dell G3 computer.

[Related article recommendations: vue.js]

Methods to run other people’s vue.js:

(1) Install node.js

Download and install node from the node.js official website. The installation process is very simple. Just keep clicking next and it will be ok. After the installation is complete, we can open it by opening Command line tool (win R), enter the node -v command to check the node version. If the corresponding version number appears, it means your installation is successful.

The npm package manager is integrated in node, so if you install node, you will have npm. Directly enter the npm -v command to display the npm version information.

(2) Install project dependencies

Open the command prompt and use the cd command to enter the project root directory. If the node_modules folder exists, Delete it first, and then execute the following command to install the dependencies

npm install

(3) Use npm to run the project

In the project directory, executenpm run serve or npm run dev to start the project

Related free learning recommendations: javascript (video)

The above is the detailed content of How to run other people's vue.js. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn