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
0
votes
1 answer

React JS npm start giving port busy ,but it is free

My react app when I run 'npm start' gives port busy. Even if a change the port same problem occurs. There's no problem in code as when I created new react app , encountered the same problem. Sudo lsof -i:port gives no process running and other node…
0
votes
2 answers

npm ERR! Unexpected end of JSON input while parsing near '...ain" : "src/index.js"' while running npm install -g @angular/cli

I get the the above error when I ran the command npm install -g @angular/cli the complete logs are as below verbose stack SyntaxError: Unexpected end of JSON input while parsing near '...ain" : "src/index.js"' 78 verbose stack at JSON.parse…
Lohith Kumar
  • 95
  • 1
  • 3
  • 9
0
votes
2 answers

Can't resolve './react' in

Not sure if this is a bug? Module not found: Can't resolve './react' in /Users/idea/hjgkh/robotsf/src even though I checked like hundreds of times why am I keep getting this "Can't resolve './react' in" whenever Npm start. Can someone please me…
hRaze
  • 3
  • 2
0
votes
1 answer

Can't resolve 'react-dom' in /ButtonBase'

I'm trying to run a React project created in Mac, I had not this problem neither in Windows or Mac, but I'm facing the following errors when I try to run (npm start) in Ubuntu: ./node_modules/@material-ui/core/esm/ButtonBase/ButtonBase.js Module not…
Maf
  • 696
  • 1
  • 8
  • 23
0
votes
2 answers

Why is a file resumeData.json not being loaded properly on github pages after deploy?

So I was following this tutorial to deploy this personal website template to github pages. My personal page is hosting here: https://samuelstentz.github.io/react-resume-sam/ master branch shows the source I run npm run deploy from.…
0
votes
1 answer

React npm start doesn't work after installing react-router-dom

I have installed a new package ('react-router-dom') and now my project doesn't start. I get this warning: How can I resolve this problem? Thanks for the help!
code
  • 71
  • 1
  • 2
  • 7
0
votes
1 answer

angular/cdk giving lots of build errors

I am doing drag and drop implementation and installed angular cdk for that. But on running npm start, I am landing into infinite number of errors, all related to cdk node modules only. Below is the package.json: { "name": "test-proj", "version":…
0
votes
6 answers

npm start command giving error in react app

i used npx create-react-app basic and the react app was created. I then went into the basic folder and tried npm start but it gave me the following error: npm start basic@0.1.0 start C:\Users\91982\Desktop\html&css\React\basic react-scripts…
0
votes
2 answers

Not able to run NPM Start after create-react-app

As I am learning the react for the first time I need to install the react-app but getting below error. I have tried everything from the instructions in the error log and several other available solutions of StackOverflow but still not able to solve…
0
votes
1 answer

Is there a way to run "tsc -watch" and "npm start" at the same time, with a click of a button/ shortcut on VSCode?

I am new to node.js and typescript, and I was wondering whether there is any way to run those two commands at the same time with the click of a button or command on visual studio code. Thank you
0
votes
0 answers

Can't start react native project with npm start

First i started with installing npm (version ) then expo cli (version ) then i initialise a project normaly then when i start my project with npm start and also expo start a get this message : Cannot determine which native SDK version your project…
0
votes
1 answer

'npm start' gives an error and does not start the development server

I'm new to node and react and am trying to start a local development server for my react app. To start it I did npm start but this put out an error. The log looks like this: 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli …
iscream
  • 680
  • 2
  • 8
  • 20
0
votes
1 answer

Create-react-app not working through WebStorm

I have no idea what is going on here, create react app is not working. After starting installing package, installation aborted in the middle. I tried to solve this through npm cache clean --force and reinstall both WebStorm and node. Node version:…
0
votes
0 answers

Unexpected token < in first line of HTML what do I do wrong?

I've read all the previous posts like this, none of which answered my question. I work on a small app for practice purpose, I run it with a simple task runner, no webpack. I get the above error in the console. he terminal says that the file compiles…
present_perfect
  • 149
  • 1
  • 2
  • 10
0
votes
0 answers

Program 'npm.cmd' failed to run NPM angular application

i have got one issue, when i run angular application. I get "program npm.cmd failed to run" in NPM. NPM start command please see the attachments.
S.B
  • 21
  • 3