Questions tagged [npx]

npx is a npm package runner that executes a (e.g. npm package binaries) either from a local `node_modules/.bin`, or from a central cache, installing any packages needed to run the .

npx is a npm package runner that executes <command> (e.g. npm package binaries) either from a local node_modules/.bin, or from a central cache, installing any packages needed to run the <command>.

npx was introduced with npm@5.2.0 as a tool intended to help round out the experience of using packages from the npm registry. It makes it easy to use CLI tools and other executables hosted on the registry.

Further Links:

796 questions
0
votes
0 answers

BUILD FAILED REACT NATIVE (Not generating apk)

I am getting an error while generating apk file: Error says: Error: EEXIST: file already exists, mkdir 'C:\Users\Amna' error EEXIST: file already exists, mkdir 'C:\Users\Amna'. Run CLI with --verbose flag for more details. Task…
amna iqbal
  • 13
  • 1
  • 3
0
votes
1 answer

What is the difference 'create-react-app ' and 'yarn create-react-app '?

What is the difference 'create-react-app ' and 'yarn create-react-app name '? I accidentally made a project without 'yarn' or 'npx'. And it worked. I wonder why and differences.
0
votes
0 answers

error in creating react project by npx create-react-app myapp

I saw many articles that similar to my problem like these npx create react-app command doesn't work , command "npx create-react-app project" not generating project but no one solved mine. When I wrote npx create-react-app myapp this error…
Abrar
  • 23
  • 4
0
votes
1 answer

missing dependencies in package.json when using "create-react-app my-app"

I tried using both npm and npx but getting same error..missing package dependencies
0
votes
1 answer

The 'npx create-react-app command' doesn't correctly work

As we know, there are a lot of questions in this community about npx create-react-app, but none of them couldn't solve my problem. I had used npx create-react-app several times and I didn't have any problem with it, but from a couple of days ago…
S. Hesam
  • 5,266
  • 3
  • 37
  • 59
0
votes
1 answer

npx create-react-app not showing latest bump to webpack-dev-server 3.11.0

This is my first SO question, so apologies for the lengthy amount of code. I'm trying to start a new project with create-react-app. I ran the following command: npx create-react-app jam-box --use-npm because I want to use npm instead of yarn, and…
0
votes
4 answers

npx create-react-app my-app command gives an error

I want to start my react app so I write this command: npx create-react-app my-app but it gives this type of error... npm ERR! Unexpected end of JSON input while parsing near '...sion":"6.1.0","depend' npm ERR! A complete log of this run can be…
0
votes
1 answer

npx create-react-app does not proceed further and stops at "installing react, react-dom, and react-scripts with cra-template

I tried to run it again but still the same issue. I am using: node : v14.0, npm: 6.14.4 Below is the screenshot of the problem. enter image description here
0
votes
2 answers

npx create-react-app command does not work, returns ES module error instead

Here is the command that I ran to try to create a React app and the resulting error log. I have been able to successfully run it three times before with the command $ npx create-react-app, but now every time that I run it, it does not work and…
Jack
  • 13
  • 2
0
votes
1 answer

I'm having a problem that can't create react app using npx command

I can't use npx create-react-app to create my react project. The console give out this: Must use import to load ES Module: C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules\create-react-app\node_modules\is-promise\index.js…
TrevorWong
  • 35
  • 1
  • 6
0
votes
1 answer

Why npx does not work for some of the packages?

npx eslint This works fine and executes eslint with out the explicit cli install on the other hand, npx prettier-eslint This one does not work. //command not found But if I install prettier-eslint-cli above command works fine My question is why npx…
Ankur Marwaha
  • 1,613
  • 2
  • 15
  • 30
0
votes
0 answers

com.facebook.react.devsupport.JSException: Can't find variable: MapPage

When trying to run application written in react-native I've got this errors. Can't google anything like it. The same errors either from android studio in emulator or after using "npx react-native run-android" UPD. So the solution is to regenerate…
0
votes
1 answer

After upgrading my dependancies, I cannot build android on the simulator with the command "npx react-native run-android"

After upgrading my dependancies, I cannot build android on the simulator with the command "npx react-native run-android" but it builds if I build using android studio
Avneesh Desai
  • 61
  • 1
  • 6
0
votes
1 answer

Why do I keep receiving an error when trying to install my react app

This is my first time trying out React and it's very demoralising to keep seeing the same error over and over again. I tried all three of these codes seperately npx create-react-app myapp npm init react-app myapp npm install -g create-react-app then…
zS1L3NT
  • 461
  • 5
  • 14
0
votes
1 answer

NPM does not allow installation of any packages like react

I have been trying to install react on my PC. The problem is that it always shows the following error: D:\React JS>npm install react npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/react…