<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Vue.js Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/vue-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/vue-js/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 20 Feb 2023 14:30:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Vue.js Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/vue-js/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Vue.js on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/#comments</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 20 Feb 2023 14:30:06 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Vue.js]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1153</guid>

					<description><![CDATA[<p>Vue.js is a popular open-source JavaScript framework used for building user interfaces and single-page applications. It was created by Evan You and was first released...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/">How to Install Vue.js on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Vue.js is a popular open-source JavaScript framework used for building user interfaces and single-page applications. It was created by Evan You and was first released in February 2014. Vue.js is a progressive framework, meaning it can be adopted incrementally as needed, allowing developers to start small and add more functionality as needed. Vue.js provides a reactive and composable system for building user interfaces, which makes it a popular choice for creating modern web applications.</p>
<p>In this tutorial, we will show you how to install Vue.js on Ubuntu 22.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>22.04</strong> operating system to make sure all existing packages are up to date:</p>
<pre><code># apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Node.js</span></h2>
<p>Vue.js is built on top of Node.js, so we need to install it first.</p>
<p>The Node.js version included in the default Ubuntu 22.04 repositories is <code>v12.22.9</code> which is an older LTS version.</p>
<p>We’ll install Node.js version <code>18.x</code> LTS on our Ubuntu OS.</p>
<pre><code># curl -sL https://deb.nodesource.com/setup_18.x | bash -</code></pre>
<p>After the repository is added successfully, run the following command to install Node.js:</p>
<pre><code># apt install nodejs</code></pre>
<p>You can verify the installation by running the following command:</p>
<pre><code># node --version</code></pre>
<p>You should see the version number of Node.js installed on your system:</p>
<pre><code>v18.14.1</code></pre>
<p>The next step is to update the npm version:</p>
<pre><code># npm install npm@latest -g</code></pre>
<p>Verify the <code>npm</code> version with the following command:</p>
<pre><code># npm --version</code></pre>
<p>You should get the following output:</p>
<pre><code>9.5.0</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: Install Vue CLI on Ubuntu 22.04</span></h2>
<p>Vue CLI is a command-line interface for building and scaffolding <code>Vue.js</code> projects.</p>
<p>Run the following command to install Vue CLI globally:</p>
<pre><code># npm install -g <span class="hljs-meta">@vue</span>/cli</code></pre>
<p>Verify the Vue CLI installation by running the following command:</p>
<pre><code># vue --version</code></pre>
<p>You should see the version number of Vue CLI installed on your system:</p>
<pre><code>@vue/cli 5.0.8</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Create Vue.js Application</span></h2>
<p>Now that we have installed Node.js and Vue CLI, we can create a Vue.js application.</p>
<p>You can create a Vue.js project run the following command:</p>
<pre><code># vue <span class="hljs-built_in">create</span> linuxtuto-project</code></pre>
<p>Sample Output:</p>
<p><img fetchpriority="high" decoding="async" class="size-full wp-image-1158 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli.jpg" alt="Vue CLI" width="899" height="125" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli.jpg 899w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-300x42.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-768x107.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-897x125.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue_cli-684x95.jpg 684w" sizes="(max-width: 899px) 100vw, 899px" /></p>
<p>You can accept the default options or customize them as needed.</p>
<p>Next, change the directory to the <code>Vue.js</code> application:</p>
<pre><code># cd linuxtuto-project</code></pre>
<p>Once you are in the project folder you can start Vue.js application in development mode with the following command:</p>
<pre><code># npm run serve</code></pre>
<p><img decoding="async" class="size-full wp-image-1160 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development.jpg" alt="Vue.js Development mode" width="900" height="151" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-300x50.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-768x129.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-897x150.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vuejs_development-684x115.jpg 684w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>By default the <code>Vue.js</code>  application start on port <code>8080.</code></p>
<p>Open your favorite browser and enter the URL <code>http://your-IP-address:8080</code> to access your Vue.js application.</p>
<p><img decoding="async" class="alignnone size-full wp-image-1162" src="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app.jpg" alt="Vue.js Application" width="1893" height="911" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app.jpg 1893w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-300x144.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-900x433.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-768x370.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-1536x739.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-1222x588.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-897x432.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/02/vue.js_app-684x329.jpg 684w" sizes="(max-width: 1893px) 100vw, 1893px" /></p>
<p>You should see the default <code>Vue.js</code> welcome page.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Conclusion</span></h2>
<p>Congratulations. You have learned how to Install <code>Vue.js</code> and create a sample app on Ubuntu 22.04. Whether you&#8217;re a beginner or an experienced developer, <code>Vue.js</code> is a great choice for building web applications.</p>
<p>In order to get more information on this topic you can visiting the <a href="https://vuejs.org/">official website of Vue.js</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/">How to Install Vue.js on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-vue-js-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1153</post-id>	</item>
	</channel>
</rss>
