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

when i try to create react app ,i get " template was not provided ,This is likely because you're using an outdated version of create-react-app " Error

when i try to install react app with following code npx create-react-app app1 i get following problem A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of…
ashil
  • 99
  • 11
0
votes
1 answer

npx create-strapi-app can't find package.json

I'm pretty sure I'm having a trivial issue, but couldn't find anything by googling. As per strapi docs I can generate a new app with askar@iMac strapi % npx create-strapi-app strapi-portfolio-api --quickstart but, for some reason, it's complaining…
Askar
  • 5,784
  • 10
  • 53
  • 96
0
votes
1 answer

can't run react native project in simulator from command

I am new in RN, and frankly in any modern front-end tools. So, I am working on an existing project, where I just run npx react-native start to run the project from the terminal, when the packager has started, I run npx react-native run-ios on…
tatasisi
  • 39
  • 8
0
votes
1 answer

is there a way to fix iconv-lite error when create-react-app

I'm trying to create react app so use "npx create-react-app myprojectname" but it keeps causing error "cannot find module 'iconv-lite'. i tried "npx --ignore-existing create-react-app myprojectname" and install icov-lite but still same error. and of…
Stephen Lee
  • 121
  • 1
  • 7
0
votes
1 answer

Error while creating project with strapi and mongo

Previously i installed mongo using guide from strapi documentation. If i wrote command service mongod status I get log about working db: mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor…
Oleksii
  • 21
  • 2
0
votes
3 answers

How to fix npm ENOENT error in create-react-app?

I'm trying to create-react-app but it's showing error I've tried npm cache clean --force npx create-react-app . Also used this but same issue occurs npm install -g create-react-app can anyone suggest how to fix this?
Gaurav Verma
  • 1
  • 1
  • 3
0
votes
0 answers

npx create-react-app test somehow gives webpack error

so I don't remember updating anything, but npx stopped working for me today! other older react projects still working (npm start). So when I'm creating new react project: npx create-react-app test cd test npm start I got this webpack error: Failed…
0
votes
0 answers

npx work only with create-react-app package

according to React JS Official docs, I have removed the create-react-app package from my system and after I try to create a new react project with npx create-react-app app-name command but it did not work for me, After I installed again…
0
votes
2 answers

React js not installed in ubuntu 20

I install node and create-react-app on my fresh ubuntu system. But got this error. Error Unexpected end of JSON input while parsing near '...","shasum":"48db9f033' I uninstall node and create-react-app globally, then install it again. Still got…
Mukkaram Waheed
  • 483
  • 7
  • 31
0
votes
1 answer

ELIFECYCLE error encountered when attempting to start React app using "npm start"

I'm encountering the error below when trying to start my React app. events.js:174 throw er; // Unhandled 'error' event ^ Error: spawn powershell.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) …
0
votes
1 answer

EPERM: operation not permitted

I was trying to create a react-native app, and ran npx react-native init but an error message Error: EPERM: operation not permitted. Error: EPERM: operation not permitted, mkdir 'C:\Users\ABIODUN' command not found: react-native```
0
votes
0 answers

unable to create react app : terminal gets stuck whenever i run command

whenever i run command npm init react-app my-app my terminal gets stuck here PS C:\Users\USER> npm install -g create-react-app C:\Users\USER\AppData\Roaming\npm\create-react-app…
0
votes
2 answers

"npm start" is not working with newly created react apps

I created a react app with npx create-react-app myburger and then entered the project through cd myburger. After that when I run the command npm start, the following error shows: $ npm start > myburger@0.1.0 start E:\front-end…
iscream
  • 680
  • 2
  • 8
  • 20
0
votes
1 answer

Incompatibility warnings after npx create-react-app my-app

I used npx create-react-app my-app but it show me error shown below. What should I do if expected to create a react project. The warnings below were occured. C:\Users\dell\OneDrive\Desktop\react>npx create-react-app reactapp Installing packages.…
0
votes
1 answer

Two errors related to npx create-react-app and npm i -g create-react-app (-g is not recognized) explained in full detail below

I am unable to use npm i -g create-react-app when I type this it does works but returns an error: 'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules \npm\bin\npm-cli.js" prefix -g' is not recognized as an internal or…