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

How to set proxy for AJAX calls in a simple react app?

I created simple react app as described in https://reactjs.org/docs/add-react-to-a-new-app.html and now want to make AJAX calls to the webserver (with PHP). To make it working with development server at localhost:3000 I am trying to set up proxy in…
Taras
  • 419
  • 5
  • 13
-1
votes
3 answers

npm start does not work

npm start npm ERR! path C:\WINDOWS\System32\WindowsPowerShell\v1.0\package.json npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open…
sugandh_g
  • 357
  • 2
  • 7
  • 16
-1
votes
1 answer

installing npm package.json giving me errors

This is just an example. But for example i was creating a react project through npm and it was saying it can't locate my package.json file... Any help will be greatly appreciated.. I will also post the code of the process in creating react project.…
Richard Jimenez
  • 177
  • 1
  • 1
  • 11
-1
votes
2 answers

Npm start doesn't work in an Angular 2 and Laravel 5 project

I am working on a Laravel 5.2 and Angular 2 project and I've just finished setting up angular but when running npm start, I get the following error : npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program…
Ines Tlili
  • 790
  • 6
  • 21
-2
votes
2 answers

Why does my react app is loading forever after npm start?

When I am starting a react app by "npm start" command in VScode terminal, it starts to loading forever on the browser. I am completely new to that so I have no idea what and where could go wrong. I have read that it may be because of mistakes in…
Karina
  • 57
  • 1
  • 9
-2
votes
1 answer

Unable to solve this issue while running npm start

I cannot seem to make npm start work. Can someone please help me? I get this: terminal This is my package JSON file: package.json
-2
votes
1 answer

I'm creating react app, on "npm start" i'm getting this error

npm start is not working, giving this error, also it was showing vulnerabilities- 82 moderate, 4 high.
-2
votes
1 answer

When should I use .jsx and .js particularly?

I have a React project in which everything was running fine until I changed the extension of App.js from the components folder to App.jsx Here is a screenshot of the folder: When I run npm start, got the following error: Error: ENOENT: no such file…
jdk
  • 451
  • 1
  • 6
  • 18
-2
votes
1 answer

Trying to run npm start command in Terminal

Everytime when i try to run npm start command this error comes, i tried to clear the npm cache still no luck, i am new to react js please help C:\Users\Staff Member\Desktop\React\react>npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR!…
Lost Kid
  • 1
  • 2
-2
votes
2 answers

Error while using npm start in react js after cd react-app

When I try to use npm start in vsCode terminal, it gaves an error that I've put it in picture above and as you can see in the picture my package.json just have start script in. can anybody help me?
-2
votes
1 answer

use create-react-app and don't have any folder

I want to create a new app with react js and when I create an app, I don't have any folder (src, public) and when I start project get this error npm ERR! missing script: start npm ERR! A complete log of this run can be found
fatemeh mh
  • 11
  • 2
-2
votes
1 answer

Npm missing script: start-win

Getting the below error log after executing npm run start-win: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli…
Zayidu A
  • 13
  • 2
  • 7
-2
votes
1 answer

I got error when i typing "npm start", how to fix it?

I got error when i typing "npm start", how to fix this ? thanks in advance..
Jhony Do
  • 73
  • 2
  • 8
-2
votes
1 answer

create-react-app: Issue with first command using npm

I want to create-react-app using npm. I try to follow this link https://reactjs.org/docs/create-a-new-react-app.html I Try to run "npx create-react-app my-app" command in my commond propmt , But it gives me error. 0 info it worked if it ends with…
-2
votes
1 answer

Can't npm start on my react project after adding babel-cli

Miks@DESKTOP-DOAIF41 MINGW64 ~/Desktop/LYNDA MERN/Exercise Files/Ch02/02_01/start/dist $ npm start react-essential@1.0.0 start c:\Users\mctumbaga\Desktop\LYNDA MERN\Exercise Files\Ch02\02_01\start httpster -d ./dist -p 3000 'httpster' is not…
mctumbaga
  • 1
  • 1
1 2 3
45
46