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

Does vuejs have to install nodejs?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you about whether it is necessary to install nodejs in vuejs. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Vuejs does not have to install nodejs. There are two ways to use Vue: 1, to build a vue project using vue-cli, you need to use nodejs;2 to create a html file, and use the script tag to introduce a "vue.js" file in this document, so that you do not need node and installation.

The operating environment of this tutorial: windows7 system, vue2.9.6 version, DELL G3 computer.

Is it necessary to install node.js to use Vue.js?

To be exact, nodejs is required when building a project using vue-cli. You can also create an. Html file and introduce Vue as follows. You can also use Vue.

But the use of node is more convenient, packaging deployment, parsing vue single-file components, parsing each vue module, put together, etc., start the test server localhost, help you manage these plug-ins vue-router,vue-resource. So usually we will use the Vue+node method, which is convenient and convenient.

Vue recommended development environment

Node.js: javascript runtime environment (runtime). Different systems run various programming languages directly.

Npm: the package manager under Nodejs. Due to the slow use of npm in China, Taobao NPM image (http://npm.taobao.org/) is recommended.

Webpack: its main purpose is to prepare all static resources that need to be published on the browser side through the syntax of CommonJS, such as merging and packaging of resources.

Vue-cli: user-generated Vue project template

Thank you for reading! This is the end of the article on "is it necessary to install nodejs for vuejs"? I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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