1"use strict";(self.webpackChunkeasy_frontend=self.webpackChunkeasy_frontend||[]).push([[5841],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return v}});var r=n(7294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=r.createContext({}),u=function(e){var t=r.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},s=function(e){var t=u(e.components);return r.createElement(c.Provider,{value:t},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,c=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),p=u(n),m=i,v=p["".concat(c,".").concat(m)]||p[m]||d[m]||a;return n?r.createElement(v,o(o({ref:t},s),{},{components:n})):r.createElement(v,o({ref:t},s))}));function v(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=m;var l={};for(var c in t)hasOwnProperty.call(t,c)&&(l[c]=t[c]);l.originalType=e,l[p]="string"==typeof e?e:i,o[1]=l;for(var u=2;u<a;u++)o[u]=n[u];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},1853:function(e,t,n){n.r(t),n.d(t,{assets:function(){return p},contentTitle:function(){return u},default:function(){return g},frontMatter:function(){return c},metadata:function(){return s},toc:function(){return d}});var r,i=n(7462),a=n(3366),o=(n(7294),n(3905)),l=["components"],c={id:"js-02-02",slug:"/js-setup-node-git",title:"Setup Node + Git",sidebar_label:"02-02 Node + Git",draft:!1},u="02-02 C\xe0i \u0111\u1eb7t Node v\xe0 Git \ud83d\ude80",s={unversionedId:"javascript/js-02-02",id:"javascript/js-02-02",title:"Setup Node + Git",description:"C\xe0i \u0111\u1eb7t Git v\xe0 setup l\u1ea7n \u0111\u1ea7u",source:"@site/docs/javascript/02-02-node-git.md",sourceDirName:"javascript",slug:"/js-setup-node-git",permalink:"/docs/js-setup-node-git",draft:!1,tags:[],version:"current",frontMatter:{id:"js-02-02",slug:"/js-setup-node-git",title:"Setup Node + Git",sidebar_label:"02-02 Node + Git",draft:!1},sidebar:"mySidebar",previous:{title:"02-01 Setup m\xf4i tr\u01b0\u1eddng",permalink:"/docs/js-setup-env"},next:{title:"02-03 VSCode Extentions",permalink:"/docs/js-vscode-extensions"}},p={},d=[{value:"C\xe0i \u0111\u1eb7t Git v\xe0 setup l\u1ea7n \u0111\u1ea7u",id:"c\xe0i-\u0111\u1eb7t-git-v\xe0-setup-l\u1ea7n-\u0111\u1ea7u",level:2},{value:"C\xe0i \u0111\u1eb7t Node",id:"c\xe0i-\u0111\u1eb7t-node",level:2}],m=(r="DocsJSFooter",function(e){return console.warn("Component "+r+" was not imported, exported, or provided by MDXProvider as global scope"),(0,o.kt)("div",e)}),v={toc:d},f="wrapper";function g(e){var t=e.components,n=(0,a.Z)(e,l);return(0,o.kt)(f,(0,i.Z)({},v,n,{components:t,mdxType:"MDXLayout"}),(0,o.kt)("h1",{id:"02-02-c\xe0i-\u0111\u1eb7t-node-v\xe0-git-"},"02-02 C\xe0i \u0111\u1eb7t Node v\xe0 Git \ud83d\ude80"),(0,o.kt)("h2",{id:"c\xe0i-\u0111\u1eb7t-git-v\xe0-setup-l\u1ea7n-\u0111\u1ea7u"},"C\xe0i \u0111\u1eb7t Git v\xe0 setup l\u1ea7n \u0111\u1ea7u"),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"V\xe0o trang ch\u1ee7 c\u1ee7a ",(0,o.kt)("a",{parentName:"li",href:"https://git-scm.com/"},"Git")),(0,o.kt)("li",{parentName:"ul"}
1,"T\u1ea3i v\xe0 c\xe0i \u0111\u1eb7t"),(0,o.kt)("li",{parentName:"ul"},"X\xe1c nh\u1eadn c\xe0i \u0111\u1eb7t th\xe0nh c\xf4ng v\u1edbi l\u1ec7nh ",(0,o.kt)("inlineCode",{parentName:"li"},"git --version")),(0,o.kt)("li",{parentName:"ul"},"Setup git l\u1ea7n \u0111\u1ea7u")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-sh"},'git config --global user.name "John Doe"\ngit config --global user.email [email protected]\n')),(0,o.kt)("blockquote",null,(0,o.kt)("p",{parentName:"blockquote"},"L\u01b0u \xfd t\xean v\xe0 email n\xe0y l\xe0 l\u1ea5y t\u1eeb th\xf4ng tin t\xe0i kho\u1ea3n Github c\u1ee7a b\u1ea1n, v\xec th\xf4ng tin n\xe0y s\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng khi commit code.")),(0,o.kt)("h2",{id:"c\xe0i-\u0111\u1eb7t-node"},"C\xe0i \u0111\u1eb7t Node"),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"Tr\u01b0\u1eddng h\u1ee3p ch\u1ec9 s\u1eed d\u1ee5ng 1 version c\u1ee7a NodeJS")),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"V\xe0o trang ch\u1ee7 c\u1ee7a ",(0,o.kt)("a",{parentName:"li",href:"https://nodejs.org/en/"},"NodeJS")),(0,o.kt)("li",{parentName:"ul"},"T\u1ea3i v\xe0 c\xe0i \u0111\u1eb7t"),(0,o.kt)("li",{parentName:"ul"},"Ki\u1ec3m tra \u0111\u1ec3 x\xe1c nh\u1eadn sau khi ho\xe0n th\xe0nh")),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-sh"},"node -v\n")),(0,o.kt)("p",null,(0,o.kt)("strong",{parentName:"p"},"C\xf3 nhu c\u1ea7u s\u1eed d\u1ee5ng nhi\u1ec1u version c\u1ee7a NodeJS ",(0,o.kt)("inlineCode",{parentName:"strong"},"(recommended)"))),(0,o.kt)("ul",null,(0,o.kt)("li",{parentName:"ul"},"Hi\u1ec7n m\xecnh c\xf3 th\u1eed tr\xean Linux + MacOS, c\xf2n windows th\xec m\xecnh ch\u01b0a th\u1eed, nh\u01b0ng theo docs n\xf3 v\u1eabn works v\u1edbi Git bash (n\xean c\u1ea7n c\xe0i Git tr\u01b0\u1edbc)"),(0,o.kt)("li",{parentName:"ul"},"C\xe0i \u0111\u1eb7t ",(0,o.kt)("a",{parentName:"li",href:"https://github.com/nvm-sh/nvm#install--update-script"},"nvm")),(0,o.kt)("li",{parentName:"ul"},"Verify c\xe0i \u0111\u1eb7t th\xe0nh c\xf4ng: ",(0,o.kt)("inlineCode",{parentName:"li"},"command -v nvm"))),(0,o.kt)("p",null,"C\xe0i \u0111\u1eb7t node version"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-sh"},"nvm install 14\nnvm install 16\n")),(0,o.kt)("p",null,"Set node version m\u1eb7c \u0111\u1ecbnh"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-sh"},"nvm alias default 14\nnvm alias default 16\n")),(0,o.kt)("p",null,"Chuy\u1ec3n \u0111\u1ed5i node version"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-sh"},"nvm use 14\nnvm use 16\n")),(0,o.kt)(m,{mdxType:"DocsJSFooter"}))}g.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.