How to create Angular Application with Syncfusion Components using Yarn Package manager
This article explains How to create an angular application using syncfusion components through yarn package
Prerequisites :
- Node.js and npm: Angular requires Node.js and npm (Node Package Manager). You can download and install Node.js from its official website Node.js Website npm is typically included with Node.js.
- Angular CLI: The Angular CLI is used to create Angular applications. To install it, once Node.js is installed, open a terminal or com-mand prompt and run:
npm install -g @angular/cli
Refer below steps to configure the yarn package manager
Step 1: Please run the following command to create a new angular project
ng new --skip-install
Step 2: Change the directory to the project : Navigate to the newly created project directory using the following command
cd project-name
Step 3: Once the project is created, we need to change the package manager to yarn. To change the package manager, kindly run the following command
ng config cli.packageManager yarn
Step 4: Now you can add the following Syncfusion package to your application by running the following command
yarn add @syncfusion/ej2-angular-inputs
Step 5: After adding the package, you can start the project by running the following command
yarn start
Note :
- Ensure that you’re using the most recent version of Yarn by running npm install -g yarn.
- Clear the Yarn cache by running yarn cache clean.
Refer to our documentation and online samples for more features. If you have any queries, please let us know in the comments below. You can also contact us through our Support forum or Support ticket. We are happy to assist you!