Questions tagged [npm-start]

For questions relating specifically to the starting of a development server in a Node.js (npm) project.

This runs an arbitrary command specified in the package's "start" property of its "scripts" object. If no "start" property is specified on the "scripts" object, it will run node server.js.

As of npm@2.0.0, you can use custom arguments when executing scripts. Refer to npm-run-script for more details.

To find more information :

678 questions
6
votes
8 answers

React: missing script: start

how to run npm start Bhanukas-MacBook-Pro:Shopping Card Admin Panel bhanukaisuru$ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! …
user11065582
6
votes
2 answers

how to run nodemon in windows from package.json

I'm following a VUE tutorial on a mac (shown in youtube). In my src/app.js I have only console.log('hi'); The start command for the Mac in package.json as shown on the youtube video is: "scripts": { "start":…
pashute
  • 3,965
  • 3
  • 38
  • 65
6
votes
1 answer

Using create-react-app's npm startwith AWS Cloud9

I am attempting to use create-react-app in AWS Cloud9. While I have no problems creating the app, when I try to run npm start I just get this screen. When I clicked on "Why am I seeing this?" I was taken to this page, which led me to turn on HTTPS.…
5
votes
2 answers

Error: Cannot find module './lib/source-map-generator'

I just cloned a repository ( a React Native project) from Github, ran npm install and then npm start. Then instead of running the metro bundler, it throws the following error: node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find…
Pawara Siriwardhane
  • 1,873
  • 10
  • 26
  • 38
5
votes
3 answers

NPM start: TypeError: ext[key].bind is not a function

I am trying to run npm start on react and am coming up with the following error. I have tried re-installing npm and node.js. Error bind is not a function error continues to come up. What am I missing? PS C:\Users\XXXXXXXXXX> npm run…
RogerJoe
  • 91
  • 2
  • 5
5
votes
0 answers

Unable to view the React app started with 'sudo npm start'

I need to run my local React app at banker-dev.mh*b.my on port number 443. This is to enable the app to call a third party API I've set my local .env file with the following: HTTPS=true HOST=banker-dev.mh*b.my PORT=443 When I run npm start, I…
yoges nsamy
  • 1,275
  • 1
  • 16
  • 29
5
votes
1 answer

npm start command not working, when I try to run my React application

React is installed properly and everything else works, except when I try to run "npm start" in the terminal, it gives me the following error. Here's my package.json code: { "name": "r3-ui", "version": "0.1.0", "private":…
Mx.
  • 143
  • 11
5
votes
1 answer

How do I resolve this recurring error when I run npm start?

I started with: Installing Node.js on my Windows 10 System (I installed v12.18.3) Then I ran command: npm i -g expo-cli to install expo on my system Next I ran expo init demoProject Next I changed directory into the demoProject (C:\Users\vridd>cd…
5
votes
0 answers

Serve react app with different static prefix in dev mode

I am running a react app with npm and would like to modify the path for the static files. I modified the package.json to include "homepage": "./app". As expected the files are now served at .../app/static when I use a production build with npm run…
Phteven
  • 161
  • 2
  • 10
5
votes
3 answers

'npm start' command doesn't do anything

I'm trying to start a react js project but the npm start command doesn't do anything. No error messages. No exceptions. Just nothing. I already have a start script in the package.json file. "scripts": { "start": "react-scripts start", …
TheBokiya
  • 620
  • 6
  • 21
5
votes
1 answer

Bazel: How do i use nodeJS_binary rule to do "npm run start"

How do i use the nodejs_binary rule to do a standard npm run start. I am able to run a typical node project using this rule. However i want to run a the start script in package.json. So far i have the following below in my build…
flexxxit
  • 2,440
  • 5
  • 42
  • 69
5
votes
1 answer

ng serve not working in windows

I did an npm i npm -g @angular/cli Then when I do ng serve I am getting this error But I I put ng serve in npm script (npm start in package.json) it works.
KRUSHANU MOHAPATRA
  • 552
  • 1
  • 6
  • 18
5
votes
2 answers

Error: Cannot find module './util/resolveCommand'

I'm not able to npm start anymore due to a problem with the util npm I think. I tried to update all the packages and to remove util and re-install it. How could I solve this? Error: Cannot find module './util/resolveCommand' at…
Cyrus Khalatbari
  • 117
  • 1
  • 2
  • 7
5
votes
3 answers

Cannot start npm in the react native tutorial

I'm beginning with react native today. I've never used it before. I tried to follow the most simple tutorial I've followed in my life: quick-start just until npm start And there's no way I can run it. I've been trying for hours because it seems…
Chuck Aguilar
  • 1,998
  • 1
  • 27
  • 50
5
votes
1 answer

tmux ctrl+d does not detach from session

I am running a server with Ubuntu 14.04 using nodejs with npm start command. I start tmux session with tmux command, then do npm start and finally do ctrl+d to detach. But ctrl+d would not work for me. Whatever I am using, it…
margarita
  • 884
  • 1
  • 10
  • 21
1 2
3
45 46