fast-react-cli
raw JSON → 1.3.1 verified Sat Apr 25 auth: no javascript
A zero-configuration React application bundler built on Parcel. The current stable version is 1.3.1. It provides a CLI to scaffold and build React apps with minimal setup. Quick initialization via `fast-react-cli init <projectName>` followed by `npm run serve` for development and `npm run build` for production. Known for its simplicity and speed, it abstracts away Parcel configuration. However, it relies on additional manual steps for image handling (Sharp/libvips). Compared to CRA or Vite, it offers less community support and documentation.
Common errors
error Error: Cannot find module '@parcel/transformer-image' ↓
cause Missing dependency when using image features
fix
npm install @parcel/transformer-image
error sharp: Installation error: unable to verify the first certificate ↓
cause SSL certificate issue during sharp download
fix
Set npm config set strict-ssl false temporarily or add sharp as a dependency manually.
error fast-react-cli: command not found ↓
cause CLI not installed globally or not in PATH
fix
Run
npm install -g fast-react-cli or use npx. Warnings
gotcha Image processing requires manual download of Sharp libvips files into npm cache. ↓
fix Download libvips-8.9.0-xxx.tar.gz and libvips-8.10.5-xxx.tar.br into your npm cache _libvips folder.
breaking Underlying Parcel version may not be pinned, causing breaking changes on upgrade. ↓
fix Check package.json and pin parcel version if needed.
gotcha CLI may not be compatible with Node.js versions below 12. ↓
fix Upgrade Node.js to LTS version.
Install
npm install fast-react-cli yarn add fast-react-cli pnpm add fast-react-cli Imports
- fast-react-cli wrong
const fastReactCli = require('fast-react-cli')correctnpx fast-react-cli init my-app
Quickstart
npx fast-react-cli init my-react-app
cd my-react-app
npm install
npm run serve