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

Failed at the reactdash@0.0.1 start script

I am trying to setup a environment for my react app development. I used initially create-react-app command and that worked perfectly fine. However, I like to keep only the modules that I would be using rather than generic modules needed for the…
Bussller
  • 1,961
  • 6
  • 36
  • 50
0
votes
0 answers

angular 2 npm start duplicate identifiers error

I am getting the following errors: When I run the command (npm-install) in windows cmd it works fine, but when I used the command npm start it gives me an error "duplicate identifiers" in ts files. I tried to remove node-modules and then I run the…
John
  • 11
  • 3
0
votes
3 answers

How to launch Angular 2 Application locally as npm start doesnot working

I followed the below mention link to setup local environment and launch application. https://angular.io/docs/ts/latest/guide/setup.html When I used npm start command to launch application, it throws an error. In the guide it is mentioned that npm…
Anil Kumar
  • 100
  • 9
0
votes
2 answers

can not setup ReactJS on mac

I need to setup ReactJS on my Mac. I have npm version of 4.1.2 and node version of v7.7.4. I clone the project from Git and in the project folder trying to execute npm install and following npm start. But I get error. I removed&uninstalled node and…
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
0
votes
2 answers

Angular 2 basic app not working

I am a newbie to Angular2. I was trying to setup Angular 2 using this reference: https://github.com/angular/quickstart. But unfortunately, I am unable to run my basic application. I have installed npm. While running "npm start", I am getting below…
0
votes
1 answer

custom arguments to npm start with webpack

I have configured an angular2 project with Webpack as my module bundler. I have everything working and now I want to take it to real world, where I want to pass theme and environment as arguments to my NPM commands. Below is my current package.json…
Sudhir V
  • 243
  • 1
  • 2
  • 8
0
votes
1 answer

Angular2 boilerplate npm-start not working

I am new to Angular2 and trying to setup the environment with the boilerplate code https://github.com/mschwarzmueller/angular-2-beta-boilerplate. My dependencies installed fine with npm install but when I run npm start I start to get the below…
Aakash Thakur
  • 3,837
  • 10
  • 33
  • 64
0
votes
1 answer

2 processes on same port?

I am running a node app inside a docker container. Here is the dockerfile FROM maven:3.3.3-jdk-8 #install node RUN apt-get update RUN apt-get -qq update RUN apt-get install -y nodejs npm # TODO could uninstall some build dependencies RUN…
user_mda
  • 18,148
  • 27
  • 82
  • 145
0
votes
1 answer

Execute npm start remotely from 2 locations

Me and another person are working on the same files (php, js). We run: npm start in order to compile our changes in our .js files, with webpack also. We both connect to the main server throught putty. But what happen if I'm already compiling NodeJS…
pmiranda
  • 7,602
  • 14
  • 72
  • 155
0
votes
3 answers

Which are the js files that are being run when I run "npm start"?

I am trying to pick up angularjs v2 using the official documentation provided. I followed the instructions on this page. https://angular.io/docs/ts/latest/guide/setup.html After I run npm start, I see a webpage http://localhost:3000/ being launched…
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
0
votes
2 answers

Angular 2 npm start does not work Exit status 1

I have an angular 2 application on my laptop that works. But if my teammate clone's it with git he get's a strange error with npm start. He does have node.js installed and the files are the same. here is the error message: npm ERR! Windows_NT…
Nick Alexander
  • 361
  • 2
  • 5
  • 21
0
votes
2 answers

npm start run in wrong path

First of all i'm using Ubuntu 14.04, and i create a node.js project under /home/user/project_folder. When i type npm start /home/user/project_folder/, i get this error: npm ERR! node v4.6.1 npm ERR! npm v4.0.2 npm ERR! path…
Ahmed Commando
  • 723
  • 2
  • 7
  • 23
0
votes
2 answers

npm not work in windows 7

I install the nodejs its work wihtout any problem but when I try to install some packge with the npm. The npm not work and give me this problem: error: Cannot find module 'C:\Program…
0
votes
1 answer

npm start error on Windows

I am trying to compile files with webpack and npm for my reactJS applciation. When I am running: npm install --save react-websocket Its working fine. Next when I am executing npm start getting the following error: > reactapp@1.0.0 start…
0
votes
1 answer

npm start command gives error : http-server:command not found , code: ELIFECYCLE

I am new be to node js . started to set up node js project . Got error when npm start command is used. npm start > sigma@1.1.0 start /usr/local/UserProfile/TitanUI > http-server -p 8080 sh: http-server: command not found npm ERR! Linux…
Ahi
  • 175
  • 1
  • 13