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 :

457 questions
7
votes
4 answers

How to fix - Module not found: Can't resolve '@babel/runtime/helpers/objectWithoutPropertiesLoose'

I am working on a project of react and I am getting the following error after implement this package https://www.npmjs.com/package/react-bootstrap-typeahead then i get the following error. Failed to…
amaan rajput
  • 163
  • 1
  • 1
  • 8
6
votes
4 answers

React JS npm start shows failed to compile web-vitals

failed to compile -/src/reportWebVitals.js Module not found: Can't resolve 'web-vitals'. Since new to react JS, could not find what happened. Here is the reportWebVitals.JS file. Thanks in advance for the help. "/src/reportWebVitals.js Module not…
ssajid.ru
  • 67
  • 1
  • 6
6
votes
3 answers

Error when trying to rum npm start command

I am trying to create a react project i have run npx create-react-app my-app then cd my-app but when I've npm start this error has been shown: > my-app@0.1.0 start C:\Users\USER\my-app > react-scripts start i 「wds」: Project is running at…
user14152355
6
votes
3 answers

Next JS npm start app load 404 page not found error for physical pages

My project works well with run dev command but when I try to npm start I got 404 page not found error for other pages (pages/...) except Index.js. I tried several ways which I found from forms(gthub issues, and blogs), but nothing worked. Any Idea?…
Elvin Mammadov
  • 17,572
  • 9
  • 34
  • 76
6
votes
9 answers

Npm install error EPERM Operation not permitted

So when trying to run the angular4 project today my first error was : npm install eperm operation not permitted so I thought to delete my node modules folder and retry. But running npm install I am running in to this error npm ERR! argv…
Troy Bryant
  • 906
  • 7
  • 27
  • 58
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.
  • 131
  • 10
5
votes
3 answers

Getting error on npm install as npm ERR cb() never called

I have set a proxy in npm global config. On installing any package I am getting following error. Below is my node and npm version: npm: 6.13.4 node: v12.16.1 As I am behind proxy, what else is required to overcome this issue. Every help will be…
Hemendra
  • 99
  • 1
  • 1
  • 5
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
  • 600
  • 5
  • 19
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
  • 1,929
  • 2
  • 30
  • 58
5
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
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
  • 514
  • 1
  • 6
  • 15
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,698
  • 19
  • 45
4
votes
1 answer

npm dev:start does not run

I have the following scripts in my package.json { "name": "demo-api", "version": "0.0.1", "description": "", "author": "", "license": "MIT", "scripts": { "prebuild": "rimraf dist", "build": "nest build", "format": "prettier…
Harsha M V
  • 50,335
  • 109
  • 326
  • 496
4
votes
4 answers

create-react-app doesn't generate public and src folders thus cannot get started

i have installed CRA for over a month and have been working with it without having any problems, however today i created a new react app and it builds the folders and directories except it doesn't generate src and public folder(it just generated…
Ebdulmomen20
  • 404
  • 1
  • 4
  • 14
4
votes
0 answers

typescript-eslint error: no-angle-bracket-type-assertion

Got this error while bootstrapping React App - $ npm start Failed to compile. ./src/components/containers/Foo.tsx Line 1: Definition for rule '@typescript-eslint/no-angle-bracket-type-assertion' was not found …
AmolR
  • 71
  • 5
1
2
3
30 31