Marwen Khefacha
Marwen Khefacha

Reputation: 11

how to create-react-app without npm -g install

[email protected] postinstall C:\Users\Pc\Desktop\appreact\my-app\node_modules\babel-runtime\node_modules\core-js node scripts/postinstall || echo "ignore"

[email protected] postinstall C:\Users\Pc\Desktop\appreact\my-app\node_modules\core-js-pure node scripts/postinstall || echo "ignore"

what's the problem plz i can't create my appp react ???

Upvotes: 1

Views: 2496

Answers (2)

Your title and your post seem entirely unrelated, so to answer the question from your title (because the post doesn't actually have one): if you want to run create-react-app (or any other node binary) without globally installing it, then you can use npx.

(npx is the only package that you should always have installed globally, because it lets you directly invoke local node binaries)

Install the tool you need locally using the standard npm install command, in this case npm install create-react-app (without a -g flag), and then run it using npx, in this particular case by calling npx create-react-app.

Upvotes: 1

Edsen
Edsen

Reputation: 77

try npx create-react-app <your app´s name> but you need to have npm installed

Upvotes: 0

Related Questions