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
0
votes
0 answers

why npm start giving ELIFECYCLE error reactjs

enter image description herewhen i execute react start command every time error called ELIFECYCLE appears. i also reinstalled node several times.but still this error appears. you can see the error screen in this image. big thank you in advance.
vrajesh
  • 11
  • 2
0
votes
1 answer

npm run start doesn't do anything and opens empty command prompt

Trying to get my project to run. We were previously working with rescript which I try to remove. When I run npm run start it does not seem to do anything and an empty command prompt pops up. ignore-scripts has already been set to false.
Pimmesz
  • 335
  • 2
  • 8
  • 29
0
votes
0 answers

I created a app using create-react-app but I am not able to launch it by "npm start"

These are the errors: npm ERR! C:\Users\ADMIN\AppData\Roaming\npm-cache_logs\2020-04-21T03_3605 489Z-debug.log The complete log file can be found here: 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'C:\\Program…
0
votes
1 answer

ng serve run in import module errors ...has no exported member

I have only been working on ASP.Net Core for a few days and after two days of unsuccessful attempts my nerves are on the ground. I am trying to run an ASP.Net Core Boilerpplate from here https://aspnetboilerplate.com/Templates. I follow the…
0
votes
1 answer

npm ERROR after npm start on node / express

The index.js file has the following code as; const express = require('express'); const cors = require('cors'); const bodyParser = require('body-parser'); const morgan = require('morgan'); const app =…
mdmostafa
  • 618
  • 9
  • 19
0
votes
1 answer

Use Vue development version from Webpack npm dev script

From my webpack.config.js I pull in Vue library with loader: 'vue-loader'. I have two npm scripts: "start": "cross-env NODE_ENV=development webpack --mode development", "build": "cross-env NODE_ENV=production webpack --mode production" When I run…
meez
  • 3,783
  • 5
  • 37
  • 91
0
votes
0 answers

Trouble running npm start on new react app

I have created react apps multiple times before and never had problems with it. Now however I run npm init react-app name (and it creates the app) cd name npm start At three is where I get the problem... Nothing happens. I have tried creating 3…
0
votes
1 answer

Webpack optimise and compress CSS and Javascript based on production mode inside webpack.config.js

I have the following NPM scripts inside package.json: "scripts": { "start": "cross-env NODE_ENV=development webpack --mode development", "build": "cross-env NODE_ENV=production webpack --mode production" }, if I run npm run build…
meez
  • 3,783
  • 5
  • 37
  • 91
0
votes
2 answers

Npm start not working after running create-react-app ONLY in Documents directory

I've been battling this issue all day and still cannot figure out what I am missing. I've always created my projects under the Documents directory on my computer but I've started getting the following error when trying to start a project after using…
LordofX
  • 11
  • 5
0
votes
1 answer

why ':server' and ':client' not found?

i am trying to fetch data from the db.json. here is my db.json file: { "posts": [ { "id": "react-hooks", "title": "React Hooks", "content": "The greatest thing since sliced bread!", "author": "ali" }, { "id": "react-fragments",…
ali
  • 135
  • 1
  • 13
0
votes
0 answers

Error: Cannot find module './_Map' reactjs

After I create my react project with npx create-react-app my-app I run npm start and get this error as you can see below node version: 12.16.1 npm version: 6.13.4 Error: Cannot find module './_Map'
Alisina Saemi
  • 65
  • 1
  • 9
0
votes
2 answers

Getting error when npm start with React application

I'm having this problem whenever I create a new React folder using npx create-react-app test. npm start does not work and throws this error message in the terminal > test@0.1.0 start C:\Users\franc\Desktop\test > react-scripts start i 「wds」:…
0
votes
1 answer

How to resole this npm installation problem?

I'm a neophyte to React JS and npm. I got a problem here for installing npm. Can anyone tell me how to solve this? $ npm install expo-cli --global npm WARN deprecated request@2.88.2: request has been deprecated, see…
Rohit Balage
  • 121
  • 3
  • 11
0
votes
1 answer

NPM Start: INVALID VALUES error for SCRIPTS (windows)

Having issues trying to NPM START a react app using IntelliJ on Windows machine. The app was built on a Mac and seems to start on a MAC without issues. It is maybe to do with the formatting of the script variables when using Windows machine? DEBUG…
0
votes
0 answers

NPM start failing

I'm trying to run my back-end code on the local host. It was functioning perfectly until I added a video into the folder and ran a python program which used the video to output results which should be displayed on the localhost. Before I ran the…
Sue
  • 225
  • 3
  • 9