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 the 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 command 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 the working sample for additional details and implementation:Sample link
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!
Conclusion
We hope you enjoyed learning how to create Angular Application with Syncfusion Components using Yarn Package manager.
Refer to our documentation, and how to quickly get started for configuration specifications. You can also explore our online samples to understand how to create and visualize the data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!
