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
2 answers

issues running `npx react-native init

I recently wiped my harddrive and upgraded my MacOS to Catalina. Now running on zsh for the first time. I installed Homebrew and then node v12.14.1, which I can confirm when I run node --version. When I try to initialize a React-Native app with npx…
jct
  • 69
  • 3
  • 11
0
votes
1 answer

What are the cases where NPX is needed?

What I want to know is if I really need to use npx and would like to know in what cases does npx makes a difference comparing to just running the command.
Vencovsky
  • 28,550
  • 17
  • 109
  • 176
0
votes
2 answers

Error: spawn cmd ENOENT while starting React APP

I am creating a React Application. I ran the following command in cmd: npx create-react-app . Thereafter I tried to start the server using npm start as instructed in the tutorial: https://github.com/facebook/create-react-app. However, I keep…
0
votes
2 answers

I can't get react up and running. When i type npm start then it gives me an error

As you can see i get this error. Has it something to do with my package.json? Default looks like this. { "name": "reactproject", "version": "0.1.0", "private": true, "dependencies": { "react": "^16.12.0", "react-dom":…
user10285972
0
votes
1 answer

Unable to launch React Project

Please find the error logs which I am getting in the terminal fruits-vegetables@0.1.0 start C:\Users\MY PC\My_Front_End\fruits-vegetables > react-scripts start Could not find a required file. Name: index.html Searched in: C:\Users\MY…
pydeveloper
  • 11
  • 1
  • 7
0
votes
1 answer

Debug mode does not activate breakpoint

I am trying to use debug mode in my react native application with visual studio code. I am using the command npx react-native run-android. It is activating the react native debugger, but it is not reaching any breakpoint in my application. I did…
0
votes
2 answers

npm ERR! code ENOLOCAL while installing frontity

C:\WINDOWS\system32>npx frontity create my-app && cd my-app npm ERR! code ENOLOCAL npm ERR! Could not install from "wolf\AppData\Roaming\npm-cache_npx\4608" as it does not contain a package.json file. npm ERR! A complete log of this run can be found…
Ajmal faiz
  • 111
  • 1
  • 6
0
votes
3 answers

after create-react-app failed to start script

Failed at the start script and didn't run nothing, while running the following command: npm start The Error There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix…
akhil
  • 1,649
  • 3
  • 19
  • 31
0
votes
0 answers

Can't create new project with using npx

I can't create new react-native project with using npx. Error permission denied. If to use sudo, project is created, but in webstorm I couldn't save all changes, So I would open webstorm as admin. My OS Ubuntu. npx expo-cli init food same as…
bekanur98
  • 502
  • 1
  • 7
  • 20
0
votes
1 answer

Spawn ENOENT error when using npx create-react-app

I'm getting a strange and rather uninformative error after attempting to create a new react app using 'npx create-react-app'. $ npx create-react-app client spawn C:\Program Files\MongoDB\Server\4.0\bin ENOENT For some reason it's pointing to my…
Ulthric
  • 11
  • 2
0
votes
0 answers

How can I run multiple node binaries in parallel?

I want to build a lot of Vue.js components in parallel. At the moment I call npx vue-cli-service build ... several times, but each time a new instance of Node.js is started, this uses a lot of memory. Is it also possible with a single instance?
Andreas
  • 430
  • 5
  • 21
0
votes
1 answer

npm ERR! Unexpected end of JSON input while parsing near '...ersion: OpenPGP.js v3' getting this error while installing create-react-app and aborting

npm ERR! Unexpected end of JSON input while parsing near '...ersion: OpenPGP.js v3' getting this error while installing create-react-app and aborting
Najma Muhammed
  • 224
  • 2
  • 5
0
votes
1 answer

Create-react-app returns "Cannot find module 'rxjs'"

I've just installed NodeJS and NPM in a new machine. I added rxjs package in all my existing projects in order to make then start properly. However, when I run create-react-app - using npm globally or npx - I receive "Error: Cannot find module…
0
votes
1 answer

How can I have my npx script run commands within the same package/repo?

Say I create a my-npx-hello-world repo it has the following files my-npx-hello-world/ foo.sh index.sh package.json the package.json has "bin": "./index.sh" the index.sh calls ./foo.sh i.e. #!/bin/sh echo "running…
molicule
  • 5,481
  • 3
  • 29
  • 40
0
votes
2 answers

npx ts-lint cannot find module 'typescript' when run in docker

I'm setting up a dockerized dev environment for node/typescript for an api project. The goal is to run everything in docker and not have any of installed node, npm or modules installed on the host. This is to isolate all versions of node and all…
Mnebuerquo
  • 5,759
  • 5
  • 45
  • 52