<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux</title>
<meta name="description" content="Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux - Savefile - Tin Tức -...">
<meta name="author" content=".: Nguoicodonvn2008.info - Cõi lòng người cô đơn :.">
<meta name="copyright" content=".: Nguoicodonvn2008.info - Cõi lòng người cô đơn :. [admin@nguoicodonvn2008.info]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.5">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;www.nguoicodonvn2008.info&#x002F;vi&#x002F;news&#x002F;savefile&#x002F;kien-thuc-may-tinh&#x002F;cach-cai-dat-trinh-quan-ly-goi-npm-yarn-tren-rocky-linux-7037.html">
<meta property="og:site_name" content=".&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.">
<meta property="og:url" content="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/cach-cai-dat-trinh-quan-ly-goi-npm-yarn-tren-rocky-linux-7037.html">
<link rel="shortcut icon" href="https://nguoicodonvn2008.info/favicon.ico">
<link rel="canonical" href="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/cach-cai-dat-trinh-quan-ly-goi-npm-yarn-tren-rocky-linux-7037.html">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/karaoke-dual/" title="Tin Tức - Karaoke Dual" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/nhac-tre/" title="Tin Tức - Nhạc trẻ" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tru-tinh/" title="Tin Tức - Trữ tình" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/nuoc-ngoai/" title="Tin Tức - Nước ngoài" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/remix/" title="Tin Tức - Remix" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tam-su-tinh-yeu/" title="Tin Tức - Tâm sự tình yêu" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tho-suu-tam/" title="Tin Tức - Thơ sưu tầm" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/cuoc-song/" title="Tin Tức - Cuộc sống" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/phan-mem/" title="Tin Tức - Phần mềm" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/kien-thuc-may-tinh/" title="Tin Tức - Kiến thức máy tính" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/hoc-tap/" title="Tin Tức - Học tập" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/tai-lieu/" title="Tin Tức - Tài liệu" type="application/rss+xml">
<link rel="alternate" href="https://nguoicodonvn2008.info/vi/news/rss/de-thi/" title="Tin Tức - Đề thi" type="application/rss+xml">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/assets/css/font-awesome.min.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/bootstrap.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/style.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/style.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/news.css" type="text/css">
<link rel="preload" as="style" href="https://nguoicodonvn2008.info/themes/default/css/custom.css" type="text/css">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/jquery/jquery.min.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/language/vi.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/DOMPurify/purify3.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/global.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/assets/js/site.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/news.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/main.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/custom.js" type="text/javascript">
<link rel="preload" as="script" href="https://nguoicodonvn2008.info/themes/default/js/bootstrap.min.js" type="text/javascript">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/bootstrap.non-responsive.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/style.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://nguoicodonvn2008.info/themes/default/css/news.css">
<link rel="stylesheet" href="https://nguoicodonvn2008.info/themes/default/css/custom.css">
<style type="text/css">
	body{background: #fff;}
</style>
    </head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">.&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.</h2>
		<p class="pull-right"><a title=".&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;." href="https://nguoicodonvn2008.info/">https://nguoicodonvn2008.info</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux</h1>
		<ul class="list-inline">
			<li>Thứ ba - 25/04/2023 00:55</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
		</div>
				<div class="imghome">
			<img alt="Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-7.jpg" width="460" class="img-thumbnail" />
		</div>
		<div class="clear"></div>
		<div id="bodytext" class="clearfix">
			<p style="text-align: justify;">Hướng dẫn này sẽ giải thích cách cài đặt Yarn trên&nbsp;Rocky Linux&nbsp;bằng môi trường dòng lệnh. Sau khi cài đặt Yarn, bạn sẽ đến với các lệnh và tùy chọn cơ bản của Yarn.</p>

<h2 style="text-align: justify;">Cập nhật hệ thống</h2>

<p style="text-align: justify;">Cần phải cập nhật hệ thống vì nếu không, chúng có thể dễ bị tấn công vào lỗ hổng bảo mật và các lỗi khác. Điều quan trọng là phải liên tục cập nhật hệ thống vì bạn muốn hệ thống được update và chạy trơn tru.</p>

<p style="text-align: justify;">Chạy lệnh bên dưới để cập nhật hệ thống.</p>

<pre id="pre0">
<code>sudo dnf check-update
sudo dnf update -y</code></pre>

<p style="text-align: justify;">Chạy lệnh bên dưới để khởi động lại hệ thống. Khởi động lại hệ thống là cần thiết vì một số lý do. Khởi động lại sẽ khắc phục mọi sự cố với hệ thống, đảm bảo mọi thứ chạy trơn tru và hiệu quả. Việc khởi động lại sẽ cập nhật không chỉ kernel và hệ điều hành mà còn cả firmware driver phần cứng của hệ thống. Việc khởi động lại có thể được thực hiện tự động thông qua một service như systemd.</p>

<pre id="pre1">
<code>sudo reboot now</code></pre>

<h2 style="text-align: justify;">Điều kiện tiên quyết</h2>

<ul>
	<li style="text-align: justify;">Server chạy Rocky Linux 8 hoặc 9</li>
	<li style="text-align: justify;">Kết nối Internet và quyền truy cập&nbsp;<a href="https://quantrimang.com/cong-nghe/cach-tro-thanh-root-trong-linux-170876" title="Root là gì? Làm sao để trở thành root trong Linux?">root</a>&nbsp;vào server</li>
</ul>

<h2 style="text-align: justify;">Cài đặt Node.JS và NPM</h2>

<p style="text-align: justify;">npm là phương pháp cài đặt được đề xuất và phổ biến nhất để cài đặt Yarn trên bất kỳ hệ thống Linux nào. Bạn có thể cài đặt npm bằng cách cài đặt Node.JS. Khi viết bài này, Nodejs 16.x là bản phát hành ổn định hiện tại.</p>

<p style="text-align: justify;">Trước tiên, bạn cần tải script Nodesource xuống hệ thống của mình bằng cách chạy lệnh bên dưới. Bạn có thể thay thế 16.x trong lệnh bên dưới bằng bất kỳ phiên bản Nodejs nào.</p>

<pre id="pre2">
<code>curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -</code></pre>

<p style="text-align: justify;">Chạy lệnh bên dưới để kiểm tra xem script đã được thêm thành công chưa.</p>

<pre id="pre3">
<code>sudo dnf repolist</code></pre>

<p style="text-align: justify;">Bạn sẽ nhận được một đầu ra như bên dưới.</p>

<figure>
<div style="text-align: justify;"><img alt="Hiển thị danh sách repo" data-i="0" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-1.jpg" data-was-processed="true" height="95" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-1.jpg" width="625" /></div>

<figcaption>
<div style="text-align: justify;">Hiển thị danh sách repo</div>
</figcaption>
</figure>

<p style="text-align: justify;">Tiếp theo, cài đặt Node.JS bằng lệnh bên dưới.</p>

<pre id="pre4">
<code>sudo dnf install -y nodejs</code></pre>

<p style="text-align: justify;">Sau khi cài đặt hoàn tất, hãy kiểm tra xem node và npm đã được cài đặt đúng chưa bằng cách chạy các lệnh này trên Terminal.</p>

<pre id="pre5">
<code>node -v &amp;&amp; npm -v</code></pre>

<p style="text-align: justify;">Bạn sẽ nhận được một đầu ra như bên dưới. Miễn là bạn nhận được số phiên bản cho cả hai thứ này, mọi thứ sẽ ổn.</p>

<figure>
<div style="text-align: justify;"><img alt="Cài đặt node" data-i="1" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-2.jpg" data-was-processed="true" height="50" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-2.jpg" width="639" /></div>

<figcaption>
<div style="text-align: justify;">Cài đặt node</div>
</figcaption>
</figure>

<h2 style="text-align: justify;">Cài đặt Yarn</h2>

<p style="text-align: justify;">Chạy lệnh bên dưới để cài đặt Yarn trên hệ thống của bạn bằng NPM. Bài viết sử dụng tùy chọn&nbsp;<strong>-g</strong>&nbsp;trong lệnh để cho biết muốn Node.JS được cài đặt trên hệ thống để nó có sẵn cho bất kỳ dự án nào.</p>

<pre id="pre6">
<code>sudo npm install -g yarn</code></pre>

<p style="text-align: justify;">Sau khi cài đặt hoàn tất, hãy chạy lệnh bên dưới để kiểm tra xem Yarn đã được cài đặt thành công chưa.</p>

<pre id="pre7">
<code>yarn -v</code></pre>

<p style="text-align: justify;">Bạn sẽ nhận được kết quả như bên dưới nếu mọi thứ suôn sẻ.</p>

<figure>
<div style="text-align: justify;"><img alt="Phiên bản Yarn" data-i="2" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-3.jpg" data-was-processed="true" height="50" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-3.jpg" width="638" /></div>

<figcaption>
<div style="text-align: justify;">Phiên bản Yarn</div>
</figcaption>
</figure>

<h2 style="text-align: justify;">Test Yarn</h2>

<p style="text-align: justify;">Phần này giải thích cách sử dụng các tùy chọn và lệnh Yarn cơ bản. Bài viết sẽ tạo một dự án đơn giản yêu cầu thêm một vài dependency.</p>

<p style="text-align: justify;">Theo nguyên tắc thông thường, nên tạo một thư mục mới cho dự án của mình để giữ cho nó có tổ chức. Bài viết sẽ tạo thư mục mới có tên&nbsp;<strong>app_testing_yarn</strong>&nbsp;và di chuyển vào thư mục đó bằng lệnh bên dưới.</p>

<pre id="pre8">
<code>mkdir app_testing_yarn &amp;&amp; cd app_testing_yarn</code></pre>

<p style="text-align: justify;">Khi đang ở trong thư mục dự án, bạn cần khởi tạo dự án bằng Yarn bằng cách chạy lệnh bên dưới để có thể cài đặt các dependency với Yarn.</p>

<pre id="pre9">
<code>yarn init</code></pre>

<p style="text-align: justify;">Lệnh này hướng dẫn bạn qua một loạt câu hỏi cho phép bạn cấu hình các tiêu chuẩn viết code của dự án và xác định tác giả. Bạn sẽ được hỏi một số câu hỏi liên quan đến dự án. Bạn có thể nhấn&nbsp;<strong>Enter</strong>&nbsp;để giữ tùy chọn mặc định hoặc nhập tùy chọn mong muốn.</p>

<p style="text-align: justify;">Đầu ra mẫu:</p>

<figure>
<div style="text-align: justify;"><img alt="Khởi tạo Yarn" data-i="3" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-4.jpg" data-was-processed="true" height="207" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-4.jpg" width="636" /></div>

<figcaption>
<div style="text-align: justify;">Khởi tạo Yarn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Một file&nbsp;<strong>pack.json</strong>&nbsp;mới sẽ được tạo sau khi bạn hoàn thành các câu hỏi. File&nbsp;<strong>pack.json</strong>&nbsp;là một loại file cấu hình cho các ứng dụng Yarn. Nó xác định siêu dữ liệu về ứng dụng, bao gồm các dependency và thông tin tác giả.</p>

<p style="text-align: justify;">Sử dụng lệnh ls để liệt kê nội dung trong thư mục và bạn sẽ thấy rằng file pack.json mới đã được tạo trong thư mục dự án.</p>

<pre id="pre10">
<code>ls</code></pre>

<p style="text-align: justify;">Đầu ra mẫu:</p>

<figure>
<div style="text-align: justify;"><img alt="pack.json" data-i="4" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-5.jpg" data-was-processed="true" height="49" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-5.jpg" width="623" /></div>

<figcaption>
<div style="text-align: justify;">pack.json</div>
</figcaption>
</figure>

<p style="text-align: justify;">Ví dụ muốn thêm các dependency cho dự án của mình để có thể sử dụng chúng trong code của mình. Để thực hiện việc này, hãy chạy lệnh bên dưới, thay thế&nbsp;<em>&#91;package_name&#93;</em>&nbsp;bằng tên của gói bạn muốn cài đặt.</p>

<pre id="pre11">
<code>yarn add &#91;package_name&#93;</code></pre>

<p style="text-align: justify;">Bạn có thể nhận danh sách các gói Yarn có sẵn trên trang web chính thức của nó.</p>

<p style="text-align: justify;">Ví dụ sẽ cài đặt ExpressJS, đây là một web framework. Vì vậy, sau khi chạy lệnh bên dưới, gói express sẽ được thêm vào dependency trong pack.json.</p>

<pre id="pre12">
<code>yarn add express</code></pre>

<p style="text-align: justify;">Bạn sẽ nhận được kết quả như bên dưới nếu mọi thứ suôn sẻ.</p>

<figure>
<div style="text-align: justify;"><img alt="Yarn thêm gói" data-i="5" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-6.jpg" data-was-processed="true" height="301" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-6.jpg" width="628" /></div>

<figcaption>
<div style="text-align: justify;">Yarn thêm gói</div>
</figcaption>
</figure>

<p style="text-align: justify;">Yarn là một lệnh khá đơn giản. Như đã nói trước đó, nó cài đặt tất cả các dependency bạn muốn và sau đó lưu chúng vào file&nbsp;<strong>pack.json.</strong></p>

<p style="text-align: justify;">Nó thực hiện điều này bằng cách tìm nạp các gói từ npmjs.org và lưu chúng vào thư mục dự án để bạn sử dụng. Lệnh trên sẽ tải xuống và lưu nhanh trong thư mục dự án.</p>

<p style="text-align: justify;">Để xem tất cả các gói đã cài đặt, hãy sử dụng lệnh yarn list.</p>

<pre id="pre13">
<code>yarn list</code></pre>

<p style="text-align: justify;">Như bạn có thể thấy trong ảnh chụp màn hình bên dưới, chỉ gói express được cài đặt vì bài viết không cài đặt bất kỳ dependency nào khác cho ví dụ này.</p>

<p style="text-align: justify;">Tuy nhiên, khi sử dụng một dự án thực tế, bạn sẽ thấy tất cả các gói được cài đặt với Yarn.</p>

<figure>
<div style="text-align: justify;"><img alt="Liệt kê các gói có Yarn" data-i="6" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-7.jpg" data-was-processed="true" height="275" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-7.jpg" width="635" /></div>

<figcaption>
<div style="text-align: justify;">Liệt kê các gói có Yarn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Nếu bạn muốn nâng cấp một gói cụ thể, hãy sử dụng lệnh bên dưới và thay&nbsp;<em>&#91;package_name&#93;</em>&nbsp;bằng tên gói.</p>

<pre id="pre14">
<code>yarn upgrade &#91;package_name&#93;</code></pre>

<p style="text-align: justify;">Ví dụ này sẽ sử dụng express làm ví dụ.</p>

<pre id="pre15">
<code>yarn upgrade express</code></pre>

<p style="text-align: justify;">Đầu ra mẫu:</p>

<figure>
<div style="text-align: justify;"><img alt="Gói nâng cấp với Yarn" data-i="7" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-8.jpg" data-was-processed="true" height="286" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-8.jpg" width="632" /></div>

<figcaption>
<div style="text-align: justify;">Gói nâng cấp với Yarn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Bạn cũng có thể loại bỏ một dependency mà bạn cần sử dụng Yarn. Để thực hiện việc này, hãy chạy lệnh bên dưới, thay thế&nbsp;<em>&#91;package_name&#93;</em>&nbsp;bằng tên của gói bạn muốn xóa.</p>

<pre id="pre16">
<code>yarn remove &#91;package_name&#93;</code></pre>

<p style="text-align: justify;">Ví dụ sẽ xóa gói express đã thêm trong phần trước. Sau khi chạy lệnh bên dưới, gói express sẽ bị xóa khỏi dependency trong pack.json.</p>

<pre id="pre17">
<code>yarn remove express</code></pre>

<p style="text-align: justify;">Đầu ra mẫu:</p>

<figure>
<div style="text-align: justify;"><img alt="Loại bỏ gói bằng cách sử dụng Yarn" data-i="8" data-src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-9.jpg" data-was-processed="true" height="130" src="https://st.quantrimang.com/photos/image/2023/04/20/cai-dat-yarn-tren-rocky-linux-9.jpg" width="629" /></div>

<figcaption>
<div style="text-align: justify;">Loại bỏ gói bằng cách sử dụng Yarn</div>
</figcaption>
</figure>

<p style="text-align: justify;">Hướng dẫn này đã chỉ cho bạn cách cài đặt Yarn trên hệ thống. Mặc dù bạn có thể sử dụng NPM để cài đặt tất cả các loại gói, nhưng bạn nên sử dụng Yarn cho các dự án của mình vì nó cung cấp một cách dễ dàng hơn để quản lý các dependency trong những file JavaScript khác nhau cho React, Angular và bất kỳ front-end framework nào khác. Nó cũng làm cho quá trình quản lý dependency nhanh hơn.</p>

<div style="text-align: justify;">&nbsp;</div>
		</div>
				<div id="author">
						<p>
				<strong>Nguồn tin:</strong>
				Quantrimang.com
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/cach-cai-dat-trinh-quan-ly-goi-npm-yarn-tren-rocky-linux-7037.html" title="Cách cài đặt trình quản lý gói NPM YARN trên Rocky Linux">https://www.nguoicodonvn2008.info/vi/news/savefile/kien-thuc-may-tinh/cach-cai-dat-trinh-quan-ly-goi-npm-yarn-tren-rocky-linux-7037.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; .&#x3A; Nguoicodonvn2008.info - Cõi lòng người cô đơn &#x3A;.
		</div>
		<div id="contact">
			<a href="mailto:admin@nguoicodonvn2008.info">admin@nguoicodonvn2008.info</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://nguoicodonvn2008.info/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
		</script>
		<div class="car-top">
  <span><img src="https://nguoicodonvn2008.info/themes/default/images/car.png" alt=""></span>
</div>
<script src="https://nguoicodonvn2008.info/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4c_e856T",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_recaptcha_ver=2,nv_recaptcha_sitekey="",nv_recaptcha_type="image",XSSsanitize=1;</script>
<script src="https://nguoicodonvn2008.info/assets/js/language/vi.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/DOMPurify/purify3.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/global.js"></script>
<script src="https://nguoicodonvn2008.info/assets/js/site.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/news.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/main.js"></script>
<script src="https://nguoicodonvn2008.info/themes/default/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://nguoicodonvn2008.info",
            "logo": "https://nguoicodonvn2008.info/uploads/angel.gif"
        }
        </script>
<script src="https://nguoicodonvn2008.info/themes/default/js/bootstrap.min.js"></script>
<script type="text/javascript">
var $scrolltop = $('.car-top');
$scrolltop.on('click', function () {
    $('html,body').animate({
        scrollTop: 0
    }, 800);
    $(this).addClass("car-run");
    setTimeout(function(){ $scrolltop.removeClass('car-run');}, 1000);
    return false;
});
$(window).on('scroll', function ()
{ 
    if($(window).scrollTop() >= 200)
    {
        $scrolltop.addClass("show");
        $scrolltop.addClass("car-down");
    }
    else
    {
       $scrolltop.removeClass("show");
       setTimeout(function(){ $scrolltop.removeClass('car-down');}, 300);
    }
});
</script>
</body>
</html>