Skip to main content

Questions tagged [npm-start]

For questions relating specifically to the starting of a development server in a Node.js (npm) project.

npm-start
Filter by
Sorted by
Tagged with
501 votes
51 answers
1.5m views

How to solve npm error "npm ERR! code ELIFECYCLE"

I'm trying to learn react, so I have this sample code for the full-stack react voting app, and I am trying to get it to work but after running npm install followed by npm start I receive the following ...
user avatar
137 votes
4 answers
61k views

How to update globally installed npm packages

Command: npm outdated -g Output: Package Current Wanted Latest Location @angular/cli 1.3.1 1.7.4 7.0.5 create-react-app 1.5.2 1.5.2 2.1.1 eslint 5.6.0 ...
akash's user avatar
  • 1,557
136 votes
9 answers
240k views

How can I clean (reset cache) of React Native using Expo. Not sure if it is cache issue

I am building a simple React Native app with create-react-native-app using only react-navigation and base-64(base 64 encode/decode) as dependencies. Over time starting the app became slower and now ...
Nedko Dimitrov's user avatar
82 votes
4 answers
142k views

What is the difference between yarn run and npm start?

Is yarn run intended to be the equivalent of npm start?
daniely's user avatar
  • 7,633
45 votes
11 answers
141k views

How to open browser to localhost through npm scripts

I've been trying to figure out how to write a npm script that will culminate with the application being launched in the user's browser without them having to manually open the browser and go to ...
rockchalkwushock's user avatar
43 votes
6 answers
82k views

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's user avatar
41 votes
13 answers
108k views

electron - node.js - ng : file path\ng.ps1 cannot be loaded because running scripts is disabled on this system

I am trying to compile a project on Windows 10 in Visual Studio Code, my settings are the following: 1) npm version 6.12 2) Node.js version 12.13 3) Angular CLI: 8.3.19 The problem I have is as ...
Emanuele's user avatar
  • 2,314
37 votes
7 answers
85k views

React JS npm start shows failed to compile web-vitals

I'm getting the error: 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 ...
ssajid.ru's user avatar
  • 509
35 votes
2 answers
17k views

Failed to compile. webpack is not a function

My project was working fine but after installing react-redux and redux i can't start the project it shows me this error Failed to compile. webpack is not a function npm ERR! code ELIFECYCLE npm ERR!...
Gulzar Yousaf's user avatar
31 votes
17 answers
232k views

npm start errors with ERR! code ENOENT, syscall open

I'm suddenly having a problem with "npm start" in my React application. When I trigger it, this is what I receive: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /mnt/c/Users/pal/...
palnic's user avatar
  • 416
30 votes
7 answers
50k views

Why do I obtain this error when deploying app to Heroku?

I am getting some kind of error when deploying my app to heroku using git hub. The problem is, I don't understand the heroku logs and the entailing errors. Here is the heroku log: Marcuss-MacBook-...
Mjuice's user avatar
  • 1,288
25 votes
12 answers
29k views

Missing Script when I run npm start to create React app

I'm trying to run the React server by running npm start When I do this I get a missing script error: λ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: ...
Aristophanes's user avatar
23 votes
5 answers
56k views

Pm2 changing log file location

I have couple of questions regarding pm2 How can I change the location of server-error-0.log and server-out-0.log files location from c:\users\user\.pm2\logs to other drive, due to restriction in ...
Jeet's user avatar
  • 5,659
22 votes
2 answers
13k views

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's user avatar
18 votes
3 answers
34k views

Do I have to do npm init, npm start and npm install each time?

I'm using npm for a local project. I want to know if I have to use npm init every time I start a session. I think the answer is yes. For example, if I restart my machine, do I have to do npm init? Do ...
Al Lemieux's user avatar
18 votes
4 answers
41k views

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 ...
Elvin Mammadov's user avatar
15 votes
13 answers
55k views

Why I am getting this error message when I run react js project first time in my system?

When I run npm start, I get this error message: Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys' Error from chokidar (C:): Error: EBUSY: resource busy or ...
Vikram Shekhawat's user avatar
14 votes
12 answers
70k views

Error: error:0308010C:digital envelope routines::unsupported (Node.js v19.4.0)

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:140:10) at module.exports (D:\web development\...
javeria sohail's user avatar
14 votes
3 answers
31k views

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: { &...
JAN's user avatar
  • 21.7k
13 votes
4 answers
40k views

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 ...
Cathal 's user avatar
  • 171
12 votes
3 answers
7k views

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:...
arj's user avatar
  • 973
11 votes
2 answers
23k views

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", ...
Harsha M V's user avatar
  • 54.7k
10 votes
4 answers
47k views

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 ...
sudo install's user avatar
10 votes
1 answer
7k views

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

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; ...
user10750437's user avatar
9 votes
10 answers
53k views

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 ...
Troy Bryant's user avatar
  • 1,024
9 votes
2 answers
7k views

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's user avatar
9 votes
1 answer
37k views

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 ...
Danzz's user avatar
  • 157
8 votes
8 answers
14k views

EACCES: permission denied, open "file-path"

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 ...
Rishabh Sharma's user avatar
8 votes
3 answers
34k views

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 ...
Hemendra's user avatar
  • 199
8 votes
1 answer
6k views

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: ...
Dr. Rahul Jha's user avatar
7 votes
3 answers
9k views

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: > [email protected] start C:\Users\USER\my-app > react-...
user avatar
6 votes
2 answers
19k views

how to run nodemon in windows from package.json

I'm following a VUE tutorial on a mac (shown in youtube). In my src/app.js I have only console.log('hi'); The start command for the Mac in package.json as shown on the youtube video is: "scripts":...
pashute's user avatar
  • 4,045
6 votes
3 answers
11k views

Error: Cannot find module './lib/source-map-generator'

I just cloned a repository ( a React Native project) from Github, ran npm install and then npm start. Then instead of running the metro bundler, it throws the following error: node:internal/modules/...
Pawara Siriwardhane's user avatar
6 votes
8 answers
48k views

React: missing script: start

how to run npm start Bhanukas-MacBook-Pro:Shopping Card Admin Panel bhanukaisuru$ npm start npm ERR! missing script: start npm ERR! A complete log of this run can be found in: npm ERR! /...
user avatar
6 votes
1 answer
13k views

tmux ctrl+d does not detach from session

I am running a server with Ubuntu 14.04 using nodejs with npm start command. I start tmux session with tmux command, then do npm start and finally do ctrl+d to detach. But ctrl+...
margarita's user avatar
  • 894
6 votes
1 answer
1k views

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 ...
Zarin Loosli's user avatar
6 votes
1 answer
5k views

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 ...
Baama's user avatar
  • 2,570
5 votes
3 answers
6k views

'npm start' command doesn't do anything [duplicate]

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. "...
TheBokiya's user avatar
  • 620
5 votes
2 answers
15k views

Error: Cannot find module './util/resolveCommand'

I'm not able to npm start anymore due to a problem with the util npm I think. I tried to update all the packages and to remove util and re-install it. How could I solve this? Error: Cannot find ...
Cyrus Khalatbari's user avatar
5 votes
3 answers
5k views

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....
Chuck Aguilar's user avatar
5 votes
1 answer
28k views

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's user avatar
5 votes
2 answers
33k views

npm install issue : 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues , run: npm audit fix --force

When I enter npm install in the relevant react project folder, it gives back this error after installing node modules 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues (...
Sandeepa Loku's user avatar
5 votes
1 answer
380 views

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: { &...
Mx.'s user avatar
  • 143
5 votes
1 answer
11k views

How do I resolve this recurring error when I run npm start?

I started with: Installing Node.js on my Windows 10 System (I installed v12.18.3) Then I ran command: npm i -g expo-cli to install expo on my system Next I ran expo init demoProject Next I changed ...
Vriddhi Pai's user avatar
5 votes
3 answers
5k views

NPM start: TypeError: ext[key].bind is not a function

I am trying to run npm start on react and am coming up with the following error. I have tried re-installing npm and node.js. Error bind is not a function error continues to come up. What am I missing? ...
RogerJoe's user avatar
5 votes
0 answers
766 views

Unable to view the React app started with 'sudo npm start'

I need to run my local React app at banker-dev.mh*b.my on port number 443. This is to enable the app to call a third party API I've set my local .env file with the following: HTTPS=true HOST=banker-...
yoges nsamy's user avatar
  • 1,405
5 votes
0 answers
638 views

Serve react app with different static prefix in dev mode

I am running a react app with npm and would like to modify the path for the static files. I modified the package.json to include "homepage": "./app". As expected the files are now served at .../app/...
Phteven's user avatar
  • 301
5 votes
0 answers
823 views

How to update npm package readme file without updating version?

When I need to update my npm package readme file , I need to update it's version. Is it possible to update readme file without version update?
King Rayhan's user avatar
  • 2,411
4 votes
5 answers
8k views

Having an Watchman Issue React native

To reload the app press "r" To open developer menu press "d" jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn't ...
Abdullah Shahid's user avatar
4 votes
1 answer
7k views

After running npm start command line doesn't work

I'm hoping others have had this issue before.. I used npm start in the terminal to run my react project which opens through localhost:3000 fine, but then any following commands I write in the terminal ...
BJones100's user avatar

1
2 3 4 5
15