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
2 answers

error when using 'npm start' with app created by 'create-react-kotlin-app'

When trying to start up an app that was created by the command line tool 'create-react-kotlin-app' with 'npm start', I keep getting the following error: kotlin-js failed. do you have kotlin installed? { "code":"ENOENT", "errno":"ENOENT", …
Aidan Heller
  • 41
  • 1
  • 4
0
votes
2 answers

React Js server start failed

I am trying to start React Js server by using command "npm start" but it is showing following error on console: prateek@localhost:~/WebstormProjects/untitled> npm start > untitled@0.1.0 start /home/prateek/WebstormProjects/untitled > react-scripts…
PRATEEK AGRAWAL
  • 319
  • 1
  • 5
  • 17
0
votes
1 answer

Error while create a new react-native project

Trying to create a new app on react-native. 'react-native start' command gives no error. But I'm not able to see my app on the emulator. Can anyone help me in figuring out the problem. I'm new to react-native.
0
votes
0 answers

Access denied when connecting to localhost with node

I have an error when I try to start my code with node (npm start). I have MySQL, XAMPP and node installed. The error is as followed: webpack building... Server started on port…
Raph
  • 3
  • 1
0
votes
0 answers

'reference error:routes is not defined' in npm start

I am a beginner in node.js and express and I have been following http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ as a reference to get started. I am building a small app to display data from my mongodb collection using jade.However,i…
0
votes
1 answer

Error with 'npm start'

I'm using Node v4.2.6 and npm v3.5.2 on Ubuntu, I clone my proyect from github and install all the modules. When I do npm start its run fine, but when I try to run it again start crashing and the only way I find to make it work again is to re-clone…
andres
  • 159
  • 3
  • 14
0
votes
0 answers

npm start error -4058 ELIFECYCLE ENOENT

I am new to React and I have been trying to start my new project. When I run 'npm start', I get the following error: 'CALL "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nodejs\\node_modules\npm\bin\npm-cli.js" prefix -g' is not recognized as…
0
votes
1 answer

check if a .env variable is x in npm scripts

So I am looking to create a script in the package.json that runs either start:dev or start:prod if ENV in the .env file is set to dev or prod and by default - if nothing is set start:dev should run. I am unsure how to check environment variables…
TheWebs
  • 12,470
  • 30
  • 107
  • 211
0
votes
1 answer

Attempt to launch Hyperledger Composer app using npm start gives "Cannot find name %participant%" error

I'm following the Developer Tutorial for creating a Hyperledger Composer solution over at https://hyperledger.github.io/, and I got all the way to the end without a hitch until running into this wall. For the final step of running the app and…
0
votes
1 answer

replace npm start by what it redirects to

I am testing a code and in the .json file there is: "scripts": { "start": "react-scripts start", "build": "react-scripts build" } The code works well when I run npm start in the console. But npm start shall be a shortcut. If I write:…
droledenom
  • 207
  • 2
  • 6
  • 18
0
votes
2 answers

Unable to run 'npm start' in Mac

I am trying to run the following command "npm start" however it throws the following error: internal/net.js:17 throw new RangeError('"port" argument must be >= 0 and < 65536'); ^ RangeError: "port" argument must be >= 0 and < 65536 at…
Keyur Shah
  • 13
  • 3
0
votes
1 answer

React npm start issue

I get this error when do npm start. I tried deleting node modules and doing npm install again but dint fix issue ERROR in multi (webpack)-dev-server/client?http://localhost:8080 ./main.js Module not found: Error: Can't resolve 'babel' in…
nca
  • 397
  • 3
  • 12
0
votes
1 answer

Not able to install any package on NPM

Please find the attached image , am not able to install any package on NPM. i did try setting & resetting proxy with "http" & "https". both are not working for me. so kindly please help
Saleh
  • 33
  • 7
0
votes
1 answer

Hyperledger composer angular app using yeoman generator

I am able to create angular app project using yeoman generator for hyperledger composer. Getting below error while running angular app generated by yeoman generator command: npm start. ERROR in multi webpack-dev-server/client?http://0.0.0.0:4200 …
0
votes
1 answer

npm run error react js

I am learning ReactJS. The installation has been done but when I run this npm command, I get the following error. me@R-SOFT-85:/var/www/reactjsbasics$ npm run build > reactjsbasics@1.0.0 build /var/www/reactjsbasics > webpack -d &&…
Tested
  • 761
  • 4
  • 16
  • 38