Questions tagged [npm-start]
For questions relating specifically to the starting of a development server in a Node.js (npm) project.
npm-start
705
questions
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
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!...
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/...
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-...
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:
...
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 ...
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 ...
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 ...
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 ...
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 ...
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\...
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:
{
&...
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 ...
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:...
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",
...
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 ...
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;
...
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 ...
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
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 ...
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 ...
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 ...
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: ...
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-...
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":...
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/...
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!
/...
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+...
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 ...
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 ...
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.
"...
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 ...
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....
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.
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 (...
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:
{
&...
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 ...
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?
...
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-...
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/...
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?
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 ...
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 ...