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
-1
votes
1 answer

My inputs lose their values when I refresh the page in a React app

My inputs lose their values when I refresh the page. It is a simple small React app that reflects what I’m doing in a larger app, with only one component I defined a state in the component that holds the value of the inputs (name and email). There’s…
Rafael
  • 2,413
  • 4
  • 32
  • 54
-1
votes
1 answer

I'm facing a heroku doployment problem, npm start not working

I need your help in some heroku stuff, I'm facing a problem, And my logs in heroku says: npm ERR! Failed at the blog@0.0.0 start script. • I'm building an express NodeJS app. Npm start fails, Any help please ? Thank you so much !!
-1
votes
1 answer

fsevents@2.1.3: Please update to v 2.2.x

Kindly see the above error that I am receiving while I am doing NPM Start for compiling Sass. Even though I tried to update the version such as this way (npm install -g nodemon npm WARN deprecated fsevents@2.1.3: Please update to v 2.2.x) but still…
Nick Benz
  • 23
  • 4
-1
votes
1 answer

Webpack plugin showin an unknown property

Following is my webpack config file and package.json. When I run webpack -w I am getting the following error (pasted in last). I think it has something to do with path string. Thank you in advance. webpack.config.js const HtmlWebpackPlugin =…
nuke3dl
  • 11
  • 4
-1
votes
3 answers

Error when trying to run npm start command

I am trying to create a react project i have run npx create-react-app hello-react --use-npm then cd hello-react but when I've npm start this error has been shown: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path…
user14152355
-1
votes
2 answers

Can not run " npm start " in ReactJS

I have a problem when I run my ReactJS project. It shows for me like this Although I already install npm install i, it also show me that error, can anyone help me with this, Please? Thank you so much.
Jin
  • 1,259
  • 1
  • 12
  • 24
-1
votes
1 answer

I am new in reactjs and when i was trying to run my first react js project it showing error, it's showing error just after the setup

[these error are showing when i was try to run my first react project. I don't know how to fix please help.][1] [1]: https://i.stack.imgur.com/Acb0i.pngstrong text
-1
votes
2 answers

How do I fix this npx create-react-app error?

This is How it looks When I gave "npx create-react-app my-app" this is what I faced. Could'nt figure out any measures. "yarn create-react-app my-app" - this didn't work either. Creating a new React app in C:\mern-stack-project\my-app. Installing…
-1
votes
1 answer

error on command npm start how to fix this

Image of errors is attached please tell me how to fix this I am new to React and facing these issues
-1
votes
2 answers

Failing at npm start

I am trying to run my index.js through nodemon start, but don't know why and where it is failing.
user8076955
-1
votes
1 answer

How to open the browser that you want as default with "npm start" on Windows 10

When you try to "npm start" your react app for the first time on Windows 10, it will launch on internet explorer / Edge as default. Do you want to ALWAYS launch on a different browser? You can simply change your default browser like below: (see this…
Maieul
  • 1
  • 1
  • 3
-1
votes
3 answers

How do run an express-generator created application in production mode?

I'm using the Express application generator, which recommends starting the server in this manner: $ DEBUG=myapp:* npm start This works and my app starts to listen on the specified port. However, the DEBUG makes me wonder: is this running in 'dev'…
aalaap
  • 4,145
  • 5
  • 52
  • 59
-1
votes
2 answers

Npm start deletes new files from .nuxt

Whenever I run "npm start" it always deletes, and even "reset" files, that I add in my .nuxt folder. As in, when I add, as an example, a new component in the .nuxt > "components" folder, press CTRL + C in cmd to stop the server and then restart…
user7838243
-1
votes
1 answer

NPM run watch errors

Do anyone have idea what i have to do here? npm ERR! Linux 4.4.0-17134-Microsoft npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "watch" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! path /package.json npm ERR! code ENOENT npm ERR!…
-1
votes
1 answer

Cannot find module 'loadash'

I am getting the following error on executing command: npm start Cannot find module 'loadash' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143