NPM
The name npm (Node Package Manager) stems from when npm first was created as a package manager for Node.js.
npm is the default package manager for Node.js, a JavaScript runtime environment.
All npm packages are defined in files called package.json.
The content of package.json must be written in JSON.
At least two fields must be present in the definition file: name and version.
{
"name" : "foo",
"version" : "1.2.3",
"description" : "A package for fooing things",
"main" : "foo.js",
"keywords" : ["foo", "fool", "foolish"],
"author" : "John Doe",
"licence" : "ISC"
}
NPX
The npx stands for Node Package Execute and it comes with the npm, when you installed npm above 5.2.0 version then automatically npx will be installed.
Npm is a tool that use to install packages.
Npx is a tool that use to execute packages.
CRA
Create React App aka CRA, is a javascript based command-line tool developed by Facebook and open source community to create a basic pre-configured starter boilerplate for a react application from where one can start development.
npx create-react-app my-app
cd my-app
npm start
Vite
Vite is a modern build tool designed for speed and efficiency, particularly when working with JavaScript frameworks like React. Developed by Evan You, the creator of Vue.js, Vite stands out due to its ability to deliver a fast and streamlined development experience.
Instant Server Start: The Vite development server skips bundling during development, resulting in near-instant startup.
Fast Hot Module Replacement (HMR): See real-time updates to your React components, speeding up iteration.
Optimized Production Builds: Vite uses Rollup to create efficient production bundles with features like code splitting.
Support for Modern Tools: Vite works seamlessly with TypeScript, JSX, and CSS preprocessors like Sass.
Top comments (0)