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
3
votes
0 answers

Deprecation warning createNodeArray since v4.0.0

Deprecation array warning: 'createNodeArray" has been deprecated since v4.0.0. Use the appropriate method on 'ts.factory’ or the 'factory’ supplied by your transformation context instead. Getting this error on nom start after migrating existing…
3
votes
2 answers

Why does npm start give me "Error: Cannot find module './keywords'"?

Tried to use npm start with Create React App to launch my react application, but got this error: node:internal/modules/cjs/loader:943 throw err; ^ Error: Cannot find module './keywords' Require stack: -…
mikwee
  • 133
  • 2
  • 14
3
votes
1 answer

disable webview warning when starting (excel) addin

I'm learning how to create addins for office. I'm using vscode and npm's "yo office". While I haven't progressed too far, I've done dozens of compiles and seeing the results in excel while I try/learn new things, and following the online modules for…
Lugh
  • 107
  • 9
3
votes
0 answers

How do i start my express server from the root folder package.json?

I have a repo with the following format: -> / -> client/ -> server/ -> package.json -> index.js -> package.json In the package.json of the root folder, I have a start script as the following: "start": "node server/index.js" In…
AKJ
  • 749
  • 6
  • 29
3
votes
1 answer

Get environment variables from docker container with react and typescript

I'm developping a website with a python flask app backend and a react and typescript front end. I want to dockerize them for developpement. I wrote the following dockerfiles: back dockerfile # Use an official Python runtime as an image FROM…
boblebol
  • 33
  • 1
  • 3
3
votes
0 answers

Can I use more cores to speed up visual studio code's compliation of npm start?

While running NPM Start within VS Code I get the following CPU usage. The task takes about a minute to run. Is it possible to get it to run at 100% on all cores?
Sniipe
  • 1,116
  • 3
  • 13
  • 28
3
votes
1 answer

React Native - Unable to resolve module `@babel/runtime/helpers/interopRequireDefault` from 'index.js'

As mentioned in Unable to resolve module `@babel/runtime/helpers/interopRequireDefault`, I am experiencing the same error and the solution for that question doesn't solve the problem in my case. Neither React Native - Unable to resolve module…
Vipul Sharma
  • 525
  • 9
  • 23
3
votes
0 answers

What to put in package json to run create-react-app

I'm trying to follow some introductory react courses and I can't run npm start to get create-react-app working. I'm on windows 10. The error I usually get is "npm ERR! missing script: start" I should mention I'm doing this from the command line,…
Pix81
  • 585
  • 3
  • 15
  • 33
3
votes
1 answer

How to specify the custom URL when i enter npm start in create-react-app

I wanted to load custom URL when i load the react using npm start in create-react-app. By default it will open localhost:somePort/. But i need locahost:somePort/somestuff
iamPavan
  • 255
  • 4
  • 15
3
votes
1 answer

Receiving TS2304: Cannot find name 'File' | TS2304: Cannot find name 'ReadableStream' when running "npm run tsc" command

I have a nodejs application using "watson-developer-cloud" module. Included this module using "npm install --save watson-developer-cloud". I see the issue below when running "npm run…
user11254486
  • 51
  • 1
  • 3
3
votes
1 answer

npm script to run redis-server, mongod and nodemon at once

In order to start my node server I have to run in different terminal tabs: redis-server mongod nodemon app/app.js I have tried to make one script for those, in package.json like this: "start": "redis-server && mongod && nodemon…
Raz Buchnik
  • 7,753
  • 14
  • 53
  • 96
3
votes
2 answers

When I run "npm start" to run a React app , it doesn't give any errors but hangs forever instead

I have already run "npm install" before this and all the necessary dependencies have been installed. I've also tried uninstalling the old version of NodeJS and installing the latest version but it's still not working. A browser window with the…
3
votes
1 answer

Npm start in angular takes a long time

I am using visual studio code to run angular projects. While running the server through npm start, my laptop takes a lot of time compared to others. Is it related to my pc specifications or I can do something to improve it? I think my Pc Specs are…
3
votes
1 answer

Can we able to run npm start from Visual Studio task runner explorer

I am setting up the Angular 4 code in Visual Studio, I can able to build successfully from Visual Studio. But if I want to start the angular code, I go to command prompt and manually type the npm start to run the application. After running the npm…
3
votes
7 answers

BROWSER SYNC headless environment ERROR

So i just started learning Angular 2 and after running the npm install command on git bash and opening my text editor, I was trying to run the npm start command to start the typescript and lite server. Everything went well until this error showed up…
Esther
  • 71
  • 1
  • 1
  • 8