(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9336],{87562:(n,e,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/guides/use-a-package-manager-in-a-project",function(){return t(73682)}])},73682:(n,e,t)=>{"use strict";t.r(e),t.d(e,{__N_SSG:()=>h,default:()=>f,markdoc:()=>y});var a=t(67294),o=t(1272),i=t(4211),r=t(84266),s=t(52385),p=t(6467),u=t(12251);let l={tags:(0,r.w)(s),nodes:(0,r.w)(p),functions:(0,r.w)(u),...(0,r.w)({})},m=new i.ZP.Tokenizer({allowComments:!0}).tokenize('---\ntitle: \'How do I use a package manager in a Blutui project?\'\ndescription: \'Learn how to use a package manager like npm, yarn, or pnpm in your Blutui project.\'\n---\n\n## Introduction\n\nA package manager helps to manage project dependencies and streamline the workflow. This guide will assist you in integrating a package manager (like `npm`, `yarn`, or `pnpm`) into your Blutui project.\n\n## Prerequisites\n\n- Basic familiarity with terminal/command line usage.\n- A Blutui project set up and ready to go.\n\n## Getting started\n\n{% step title="Choose your package manager" position="1" %}\nYou can opt for any of the three primary package managers: `npm`, `yarn`, or `pnpm`. Each has its distinct features and benefits.\n{% /step %}\n\n{% step title="Installation" position="2" %}\nIf you haven\'t installed any of these, follow the relevant guide below:\n\n- **npm**: As `npm` comes bundled with Node.js, install Node.js from [here](https://nodejs.org/en).\n- **yarn**: Get started with yarn by visiting [Yarn installation guide](https://yarnpkg.com/getting-started/install).\n- **pnpm**: To set up pnpm, refer to the [pnpm installation guide](https://pnpm.io/installation).\n{% /step %}\n\n{% step title="Create the package.json file" position="3" %}\nOpen your terminal or command prompt. Navigate to your Blutui project directory using the `cd` command.\n\nIf you\'re using `npm`, run the command:\n\n```bash\nnpm init\n```\n\nFor `yarn` users, the equivalent command is:\n\n```bash\nyarn init\n```\n\nIf you\'re using `pnpm`, use:\n\n```bash\npnpm init\n```\n{% /step %}\n\n## Conclusion\n\nBy successfully integrating a package manager into your Blutui project, you\'ve set the foundation for efficient dependency management and streamlined your project workflow. Whether you use `npm`, `yarn`, or `pnpm`, you\'re now equipped to handle packages and modules in a structured manner. Happy coding!\n'),c=i.ZP.parse(m,{slots:!1}),d=c.attributes.frontmatter?o.ZP.load(c.attributes.frontmatter):{},{components:g}=(0,r.J)(l);var h=!0;let y={frontmatter:d};function f(n){let e=n.markdoc;return i.RZ.react(e.content,a,{components:{...g,...n.components}})}}},n=>{var e=e=>n(n.s=e);n.O(0,[2649,4372,1542,2888,9774,179],()=>e(87562)),_N_E=n.O()}]);