Registry / devops / create-new-app

create-new-app

JSON →
library7.5.0jsnpmunverified

A CLI tool to scaffold React applications with optional Express and MongoDB integration. Version 7.5.0 (latest) provides a guided process or manual flags to generate a full-stack React project including Webpack dev server, React Fast Refresh, and a SCSS utility library (Sassyons). Unlike Create React App, it offers first-class support for Express backends and MongoDB, with proxy setup for API calls. Release cadence is irregular; last release was in April 2021. Key differentiator: opinionated full-stack scaffold without ejecting, using comments and links for customization.

npm install create-new-app
INSTALL
IMPORT
SIG · CREATE-NEW-APP
C
create-new-app
devopsjavascriptv7.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

createNewApp
npm install -g create-new-app
npm install --save-dev create-new-app
Install globally, not as a dev dependency. Use via CLI command 'create-new-app' or 'cna'.
default export
const createNewApp = require('create-new-app')
import createNewApp from 'create-new-app'
The package is a CLI tool, not a library. There is no programmatic API; it is invoked from the command line. No ESM export exists.
CLI command
create-new-app my-app
npx create-new-app my-app
While npx also works, the recommended installation is global, then run 'create-new-app' directly. 'cna' is a shorthand alias.

Shows global installation, then creating a new app using the guided process or with CLI flags, and starting the dev server.

# Install globally npm install -g create-new-app # Create a new app with guided process create-new-app # Or with name and options create-new-app my-app --react-router --express --mongodb # Start development server cd my-app npm start
Debug
Known issues
deprecatedcreate-new-app has not been updated since April 2021. The generated Webpack config may be outdated for latest React or Webpack versions.
fix
Consider using Vite or Create React App for newer React projects. Or manually upgrade dependencies after scaffolding.
affects: <=7.5.0
breakingNode.js engines requirement: >=10.13.0. Using an older Node version will break installation.
fix
Upgrade Node.js to version 10.13.0 or higher.
affects: <10.13.0
gotchaThe generated app uses Webpack dev server on port 8080 by default. Ensure port is free or configure via --port option.
fix
Use create-new-app my-app --port 3000 to change the port.
affects: all
deprecatedReact Fast Refresh was experimental at the time of last release; may have compatibility issues with newer React versions.
fix
Manually update React and related packages after scaffolding, or check for breaking changes in React Refresh.
affects: <=7.5.0
Errors
Common errors & fixes
command not found: create-new-app
Not installed globally or npm global bin not in PATH
fix
Run 'npm install -g create-new-app' and ensure npm global bin directory is in your PATH (e.g., export PATH="$(npm bin -g):$PATH")
EPERM: operation not permitted, symlink ...
Insufficient permissions to install global package on Unix/macOS
fix
Run 'sudo npm install -g create-new-app' or configure npm prefix to a directory you own
Module not found: Error: Can't resolve 'react'
Generated project dependencies not installed
fix
Run 'npm install' inside the generated project folder before starting the dev server
Error: Cannot find module 'webpack'
Running 'npm start' before installing dependencies
fix
Ensure you run 'npm install' in the project directory first
Upgrade
Version history
7.5.0latest on npm
Audit
Dependencies
reactoptionalPeer dependency for generated React application
react-domoptionalPeer dependency for generated React application
expressoptionalOptional integration for Express server
mongodboptionalOptional integration for MongoDB
Agent activity
2 hits · last 30 days
node
2
Resources
create-new-app — npm install create-new-app · libregistry