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
13
votes
4 answers

npm ERR! code ERESOLVE unable to resolve dependency tree

I got this project from a repo cloned it using git clone then cd into the correct directory Example: Next i went to install the project and this error comes up enter image description here Here is the JSON file { "name": "tryb-prints", …
Cathal
  • 171
  • 1
  • 1
  • 8
13
votes
4 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
  • 25,329
  • 11
  • 40
  • 82
11
votes
1 answer

Error URI malformed when running react application on mac

I am trying to run React app locally. When running npm run dev I get error vite v2.6.14 dev server running at: > Local: http://localhost:3000/ > Network: use `--host` to expose ready in…
Marko Zadravec
  • 8,298
  • 10
  • 55
  • 97
10
votes
3 answers

Content and Map of this Source is not available (only size() is supported) Angular 13

I have been working with angular project and have angular version is 13 and node is 16 versions. When i use command npm run start its throwing an error(compilation error). Pasted the error below Error: Content and Map of this Source is not available…
arj
  • 887
  • 1
  • 15
  • 37
10
votes
3 answers

Pass parameter to npm run "my command" and use that parameter in my functions

Consider app.js const { doCoolStuff } = require("./api/myApi"); // grab param from command line into "myParam" doCoolStuff(myParam); ... // more code And Package.json: { "name": "-------", "version": "1.0.0", "description": "", "main":…
JAN
  • 21,236
  • 66
  • 181
  • 318
10
votes
2 answers

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
  • 54,075
  • 125
  • 354
  • 529
10
votes
1 answer

Why is npm react-scripts producing a syntax error when I run `npm run start`?

So I've been working on a full stack React app for a few months now. For some reason, seemingly out of no where, when I tried to run npm run start on the command line, it produced the following error; // npm run start > pair@0.1.0 start…
user10750437
  • 385
  • 4
  • 10
9
votes
4 answers

React Cannot Start Project - 'craco' is not recognized as an internal or external command

is anyone able to tell me why I cannot start up my website project on the development server? I've cloned a file on Windows 10, this used to work fine on my Mac OS ... before it died :'(Feel free to try the project:…
sudo install
  • 148
  • 1
  • 1
  • 7
9
votes
2 answers

Metro Bundler ready. ERROR ENOSPC: System limit for number of file watchers reached, watch

Metro Bundler ready. ERROR ENOSPC: System limit for number of file watchers reached, watch
Mahendra Pratap
  • 3,174
  • 5
  • 23
  • 45
8
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
  • 179
  • 1
  • 1
  • 5
7
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
7
votes
10 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
  • 994
  • 8
  • 29
  • 60
6
votes
1 answer

NX build: Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available

While trying to run my application built in angular 13 throwing below error. Don't know the reason for this. Any help would be appreciated. Error: "[error] Error: [readCachedProjectGraph] ERROR: No cached ProjectGraph is available. If you are…
Rahul Jha
  • 874
  • 1
  • 11
  • 28
6
votes
7 answers

Docker: npm run start causing error, EACCES: permission denied, open '/home/node/node_modules/.cache/.eslintcache

I have created a react app and trying to run it over the docker container with volumes (mapping content inside the container with outside files), everything was working fine earlier but now facing an issue as shared. Can anyone help me with that?…
Rishabh Sharma
  • 341
  • 1
  • 2
  • 9
6
votes
2 answers

How to use npm start to open localhost

I have just finished making a website with html, css, js and wanted to open it with npm start. Granted, I know if I click the html, the webpage will open. But I would like to use npm. What do I need to install to npm and do I need to change the…
Danzz
  • 127
  • 1
  • 1
  • 6
1
2
3
45 46