Posts

'vite' is not recognized as an internal or external command, operable program or batch file

' vite ' is not recognized as an internal or external command npm install First, try to install a node package manager and then run npm run dev What is Vite? Vite is a build tool that was specifically designed to optimize the development experience for modern web applications. Vite leverages native ES modules and compiles code on the fly, resulting in faster start-up times and an overall more performant development experience. Vite also offers additional features such as Vite plugins, absolute imports, and environment variables. Using Vite with React Vite is compatible with React, and creating a Vite React app is a straightforward process. When deciding whether to use Vite instead of Create-React-App, it's essential to consider the performance benefits and additional features that Vite offers. Vite can also be integrated into an existing React project with some configuration changes. Differences between Vite and Create-React-App There are several key differences between Vit...

Angular Cheat Sheet

  Starting a New Angular Project Before starting a new project,  Node.js  must be installed on your machine. Next, Angular has an official CLI tool for managing projects. It can be installed with NPM or Yarn. # NPM npm install -g @angular/cli # Yarn yarn global add @angular/cli Afterward, we can create a new project with the following command: ng new my-app Angular will prompt you to configure the project. For the default settings, you can press the  Enter  or  Return  keys. During the installation process, Angular will scaffold a default project with packages for running Angular. You can run a project with either command: # Development ng serve # Production ng build --prod Installing a Library Without a doubt, you will find yourself installing 3rd party libraries from other developers. Packages optimized for Angular may be installed with a special command that will install and configure a package with your project. If a package is not opt...