In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
In this article, the editor introduces in detail "how to download and install vue.js". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to download and install vue.js" can help you solve your doubts.
1. CDN
We can introduce it directly through CDN, and you can choose whether to introduce the development environment version or the production environment version.
II. Download and import
Development environment:
Https://vuejs.org/js/vue.js
Production environment:
Https://vuejs.org/js/vue.min.js
III. NPM
Npm needs to be greater than version 3.0, and the lower version needs to be upgraded:
# View version $npm-v2.3.upgrade npmcnpm install npm-g# upgrade or install cnpmnpm install cnpm-g
We recommend NPM when using Vue to build large frameworks:
# the latest stable version $cnpm install vue
Command line tools:
# Global install vue-cli$cnpm install-- global vue-cli# creates a new project based on webpack template $vue init webpack my-project#. You need to make some configuration here. You can enter This will install vue 2.x version of the template.For Vue 1.x use: vue init webpack#1.0 my-project?Project name my-project?Project description A vue.js project?Author runoob by default. Vue build standalone?Use ESLint to lint your code? Yes?Pick an ESLint preset Standard?Setup unit tests with Karma + Mocha? Yes?Setup e2e tests with Nightwatch? Yesvue-cli-Generated "my-project" .to get started:cd my-projectnpm installnpm run devDocumentation can be found at https://vuejs-templates.github.io/webpack
We enter the project to install and then run:
After reading $cd my-project$cnpm installcnpm run devDONE Compiled successfully in 4388ms > Listening at http://localhost:838e, the article "how to download and install vue.js" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, please 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.