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

Angular2 npm start failure

when i run npm start command i have this error below. Help me please. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" npm ERR! node v4.5.0 npm ERR!…
0
votes
1 answer

Npm start errors

I am starting to do some Angular tutorials and I cannot get npm to start on OSX Yosemite. Below is the error log. I appeared to have followed the instructions but cannot see the compiled app at localhost:3000. 0 info it worked if it ends with ok 1…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
0
votes
1 answer

Parse cloud code error for body-parser on npm start command

I have created the project for parse cloud code and now I am trying to start it using node.js When I run start npm command it gives following error. :\Project>npm start > parse-server-example@1.4.0 start C:\Project > node…
-1
votes
0 answers

nvm install and start, am I should make my project only on directory C:?

I have been installed a nvm on C: (automatic), and then I made project on E:, and when Im trying to node index.js it turns out like this. node index.js and also when I tried to npm start on JSON, it looks like this, npm start should I make my…
-1
votes
1 answer

Compilation errors showing up only locally (Angular)

I am trying to run this application, but I keep getting this errors during compilation that I can't find a solution to. Normally I would know how to solve them but the real problem is that these errors are showing uonly on my PC. I am running the…
-1
votes
1 answer

I get this list of errors when I use the npm start command on my react project

$ npm start npm ERR! Missing script: "start" npm ERR! npm ERR! Did you mean one of these? npm ERR! npm star # Mark your favorite packages npm ERR! npm stars # View packages marked as favorites npm ERR! npm ERR! To see a list of scripts,…
Devansh Gupta
  • 59
  • 1
  • 8
-1
votes
1 answer

JS script for npm-start

I would like to know if we can write/pass the npm-start command as a JS script. Requirement: Create a JS script that can execute the command npm-start. OS: Microsoft Windows My requirement is to convert it to a Windows service. However, for the…
-1
votes
1 answer

npm start in create react app throws error(tries searching for react-scripts in weird place)

Other projects work just fine but this project for some reason throws this error: The internal scripts from npm(version 8.19.1) appear to be trying to import react-scripts from my Desktop(???) instead of from node_modules. Checking my node_module…
ionescho
  • 1,360
  • 2
  • 17
  • 31
-1
votes
2 answers

Why is my 'npm start' script resulting in the error: 'run' is not recognized as an internal or external command, operable program or batch file

while giving command- npm start the result goes with this and I am not able to get the local host ip git-test@1.0.0 start run npm lite 'run' is not recognized as an internal or external command, operable program or batch file.** also…
Asad Ali
  • 13
  • 2
-1
votes
1 answer

Unable to run npm command "Error: Command failed: npm run start"

I am trying to run a npx command on my M1 MacBook but I keep getting the same error. I already installed node.js and npm so that I could run this command: npx @mondaydotcomorg/monday-cli scaffold run ./ quickstart-react However, when I run this…
mpp
  • 308
  • 1
  • 14
-1
votes
1 answer

My react app does not start when I write npm start and get this error can anyone please help me I am new to react. I am using Acode(Editor) and termux

npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /data/data/com.termux/files/home/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/data/data/com.termux/files/home/package.json' npm ERR!…
-1
votes
2 answers

error TS2345: Argument of type 'OperatorFunction' is not assignable to parameter of type 'OperatorFunction

How can I solve this problem? Angular CLI: 14.0.2 Node: 16.13.0 rxjs: 7.5.5 typescript: 4.7.4 My imports : import { Observable, BehaviorSubject } from "rxjs"; import { first, catchError, tap } from "rxjs/operators"; Error on first(), login( …
SlimB
  • 11
  • 1
  • 2
-1
votes
1 answer

Procfile working locally but not in heroku CLI

So I am trying to make my procfile for Heroku CLI but I don't think Heroku is recognizing it because when I do $ git push heroku main the Procfile doesn't work rather it does npm start rather than what's written in the Procfile but it works when I…
Arya
  • 1
  • 1
-1
votes
2 answers

npm start, Failed to compile

I created a new react app with npx create-react-app my-app2, and then cd my-app2. But when run this command npm start, it shows Failed to compile . And the localhost:3000 shows Error while loading rule 'jsx-a11y/alt-text': rule.create is not a…
KoalaJ
  • 145
  • 2
  • 11
-1
votes
1 answer

How to start a npm-package?

I want to program a Minecraft Bedrock Addon with JavaScript, just installed these packages "npm install -g yo" and "npm install -g generator-minecraft-addon". This all worked great. Now I want to continue with the settings of the mod, for this I…