Skip to main content

All Questions

-1 votes
2 answers
306 views

npm start failed at start: `react-scripts start`

I was trying to push to git but my files were too large. Tried removing the node_modules folder and then running npm start but now I am getting this error: Invalid options object. Dev Server has been ...
Kam's user avatar
  • 1
1 vote
2 answers
2k views

Node.js I need a single script to combine tsc build watch with nodemon

I currently have two scripts: "scripts": { "build": "tsc -p . -w", "watchjs": "nodemon dist/index.js" } And I need two terminals one for ...
drin's user avatar
  • 13
2 votes
1 answer
2k views

npm start json-server in background

I'm trying to have my npm start script run json-server in the background in parallel to then running react-scripts to start UI. How would I go about doing this? I've tried various things with single &...
simonfanz's user avatar
0 votes
1 answer
2k views

How do you fix and error of an Invalid version of NPM for installing @nestjs/core?

Hey so i just recently started learning Nestjs and I was asked to setup the environment on my Chromebook(Linux terminal). All packages have been successfully installed except a package @nesjs/core. I'...
Jefferson Chukwu's user avatar
1 vote
0 answers
47 views

Unable to create react app using create-react-app showing e404 [duplicate]

Hey everyone I am new to development and recently started react. when I am creating my react app it showing error in my terminal. npm WARN config global `--global`, `--local` are deprecated. Use `--...
swetank singh's user avatar
2 votes
1 answer
1k views

Why does "npm start" work without "run", but no other script does? [duplicate]

In my package.json file, there is the "scripts" section with my "start" script. When I type npm start it runs the "start" script. But for any other script, you have to ...
Jacob Hornbeck's user avatar
0 votes
1 answer
477 views

Node.js run app from terminal all work fine but when app start by npm "start" script it load only html without all static files in public folder

I have simple web site that use node.js and express.js When I start my app.js file from terminal with command "node app.js" or "nodemon app.js" it work fine. It loads all my static ...
Grigore Vieru's user avatar
0 votes
1 answer
754 views

Command not found using npm on a React project

I recently copied used a custom script to copy my build to another project and that's where all hell broke loose. When I try to run npm start I get this error message: \node_modules\.bin/../node/bin/...
Gui Vecchi's user avatar
0 votes
1 answer
56 views

How can I make nodejs to start working again?

I've been using npm for a while to do a project with angular, but 3 days ago my windows so updated and since then the npm it's not working at all. I try to run npm install The terminal shows this: npm ...
Layne's user avatar
  • 1
0 votes
0 answers
101 views

when i have 3 package.json, npm install only two package.json

I have 3 package.json. one is the root package.json, and second, third are local library package.json. package.json | |ㅡpackage.json(lib a) | |ㅡpackage.json(lib b) when I 'npm install' in root ...
Ghunhee Shin's user avatar
0 votes
2 answers
1k views

Electron.js quick start guide: Errors on "npm start"

I am new to electron and followed the quick start guide here: https://www.electronjs.org/docs/tutorial/quick-start My package.json has this: "scripts": { "start": "...
Oliver Kötter's user avatar
16 votes
3 answers
34k views

Pass parameter to npm run "my command" and use that parameter in my functions

Consider app.js const { doCoolStuff } = require("./api/myApi"); // grab param from command line into "myParam" doCoolStuff(myParam); ... // more code And Package.json: { "...
JAN's user avatar
  • 21.9k
1 vote
2 answers
650 views

IIS npm start from webconfig

I'm deploying my node express project with iis. pm2 don't restart after then server rebooting. can I npm start or pm2 start on webconfig file? what should I do?
zey's user avatar
  • 297
5 votes
2 answers
18k views

How to start Nestjs application

I started working on a NestJS application, the previous developer did not leave any documentation or comments and I'm new to NestJS and Node generally. I'm having a hard time running the application ...
Suhilah Salam's user avatar
2 votes
1 answer
10k views

Difference between start and dev script in package.json file

In almost all of the docs I've come across so far, most of the time I have seen the start and the dev script being used for a similar kind of functionality. following are 2 examples: 1. "...
rajarshi's user avatar

15 30 50 per page