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

jquery-3.2.1.min.js:2 Uncaught Error: [$injector:modulerr]

I get this error and a blank page on the browser when I run my page using npm start jquery-3.2.1.min.js:2 Uncaught Error: [$injector:modulerr] …
3
votes
3 answers

npm start : Failed start script 'ng serve'

Just to clarify this: I'm completely new to AngularJS and to any Web Technology. I'm a beginner when it comes to Web Development. I tried to install it and I've gotta admit, after many "Unknown Buttons Pressings", I may have done a big mess, or…
Eksapsy
  • 1,541
  • 3
  • 18
  • 26
2
votes
0 answers

Problem using yarn to start a react application

Hello first of all I'm quite new to React so sorry for my ignorance. Here is my problem I am trying to run a app using the command yarn start but I am always getting an error. This is what I'm trying to run and the commands that I have used: git…
Mr Sir
  • 21
  • 2
2
votes
0 answers

Why do I get an error like this when I go to npm run build? Module not found: Can't resolve

Why do I get an error like this when I go to npm run build? There is no such thing as before. But now this one is coming. build next build info - Skipping linting info - Checking validity of types info - Disabled SWC as replacement for Babel…
Xe P
  • 21
  • 3
2
votes
1 answer

errno -4058 ENOENT: no such file or directory This is related to npm not being able to find a file

D:\react> npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path D:\react/package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'D:\react\package.json' npm ERR! enoent This is related to npm not being…
2
votes
1 answer

How do I add a custom script to my package.json file that runs two commands at the same time?

I need to run 2 commands at the same time: 1)npm start 2)nodemon server.js the first in /user/MatildeSalamanca_Project/web-app and second in /user/MatildeSalamanca_Project/web-app/src/server It has to be something like this but with their…
2
votes
0 answers

Monaco web editor isn't working after uncommenting part of the code in the method that isn't used

I try to add the suggestions on the Monaco web editor and have a very strange problem. Consider the class: import { ExpressionContext } from "../ANTLR/ExpressionsParserGrammarParser"; import * as monaco from "monaco-editor-core"; import {…
2
votes
1 answer

npm start json-server in background

I'm trying to have my npm start script run json-server in the background in parallel to then running react-scripts to start UI. How would I go about doing this? I've tried various things with single & and prestart, etc but everything results in…
simonfanz
  • 31
  • 4
2
votes
1 answer

Why does "npm start" work without "run", but no other script does?

In my package.json file, there is the "scripts" section with my "start" script. When I type npm start it runs the "start" script. But for any other script, you have to run it by doing npm run [script-name]. This makes me have 2 questions: Why does…
Jacob Hornbeck
  • 398
  • 2
  • 19
2
votes
1 answer

Cannot find module node_modules\chalk\source'. Please verify that the package.json has a valid "main" entry

I updated node, npm and expo-cli now I'm facing this issue every time i run "Npm start" Cannot find module 'C:\Users\xyz\projects\abc\node_modules\chalk\source'. Please verify that the package.json has a valid "main" entry Error: Cannot find module…
mahnoorkhan
  • 31
  • 1
  • 2
2
votes
0 answers

(node:8472) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE]

so i got error when i started my react-app (node:8472) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option. (Use `node --trace-deprecation…
2
votes
2 answers

Displaying Most NODE_OPTIONs are not supported in packaged apps error after npm command

"Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details." error is displaying in the vs code console after I enter the npm. This issue comes up after I installed cypress version 9.4.1. The code is running fine but…
akshith
  • 81
  • 1
  • 8
2
votes
0 answers

Error: Cannot find module 'react-dev-utils/typescriptFormatter'

I buy a react theme from theme forest and trying to open it I install npm and then I execute the command npm start and I get the error showing bellow. I send a message to developer he reply back and said execute the command npm install…
2
votes
2 answers

Blank page on npm start react

I'm new to React and I'm creating a React app which on npm start it's returning a blank page. Below is : Here's my index.js import React from "react"; import ReactDOM from 'react-dom'; import App from '../src/App'; ReactDOM.render(,…
Riziki
  • 51
  • 1
  • 5
2
votes
0 answers

React Start Script Does Not Open in Firefox

When I start a new react app using npx create-react-app some-app and then adjust the start script to "start": "BROWSER='Firefox Developer Edition' react-scripts start", it still opens up with chrome when I run with npm start. What am I…
brunshte
  • 153
  • 2
  • 9