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
4
votes
6 answers

Error: error:0308010C:digital envelope routines::unsupported (Node.js v19.4.0)

Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:71:19) at Object.createHash (node:crypto:140:10) at module.exports (D:\web…
javeria sohail
  • 41
  • 1
  • 1
  • 2
4
votes
4 answers

Having an Watchman Issue React native

To reload the app press "r" To open developer menu press "d" jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root…
Abdullah Shahid
  • 141
  • 1
  • 6
4
votes
2 answers

Getting "Html Webpack Plugin: Error: Child compilation failed: Module.createRequire is not a function" when trying to run React app

Trying to run npm start within my React app is causing the following: Error: Child compilation failed: Module.createRequire is not a function - child-compiler.js:169 childCompiler.runAsChild …
lucss
  • 31
  • 1
  • 2
4
votes
1 answer

cant start react native project using npm/expo start

following react-native docs to make an android app after using npm install -g expo-cli command and in the same project file using expo init first-proj cd first-proj everything is good until I do npm start it's going to give me an error >…
JackQx
  • 182
  • 1
  • 13
4
votes
2 answers

npm install issue : 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues , run: npm audit fix --force

When I enter npm install in the relevant react project folder, it gives back this error after installing node modules 27 vulnerabilities (16 moderate, 9 high, 2 critical) To address all issues (including breaking changes), run: npm audit fix…
4
votes
2 answers

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 locally, the application was developed using the…
Suhilah Salam
  • 51
  • 1
  • 4
4
votes
2 answers

Error while installing npm packages npm ERR! code ELIFECYCLE

Don't know what happened but I receive the following error while >npx create-react-app . >npm i >npm install and so on, so none of the commands above work the error: npm ERR! code ELIFECYCLE npm ERR! syscall spawn C:\Program…
Aaamrk__
  • 41
  • 1
  • 2
4
votes
1 answer

webpack compile gives ts-loader error on new computer

I have just set up a new laptop, checked out my sources run npm install as is the norm. Then ran webpack build thus: npm run clean && npm run scss && webpack --bail --progress --profile I then get this error which I cannot find details about…
Gurnard
  • 1,773
  • 22
  • 43
4
votes
0 answers

npm ERR! code ELIFECYCLE npm ERR! errno 243

Working on my first react-native project. "npm install" seems to work fine but when I try "npm start" I am greeted with this error message. This command requires Expo CLI. Do you want to install it globally [Y/n]? y Installing the package…
4
votes
5 answers

create-react-app doesn't generate public and src folders thus cannot get started

i have installed CRA for over a month and have been working with it without having any problems, however today i created a new react app and it builds the folders and directories except it doesn't generate src and public folder(it just generated…
Ebdulmomen1
  • 606
  • 1
  • 10
  • 21
4
votes
0 answers

typescript-eslint error: no-angle-bracket-type-assertion

Got this error while bootstrapping React App - $ npm start Failed to compile. ./src/components/containers/Foo.tsx Line 1: Definition for rule '@typescript-eslint/no-angle-bracket-type-assertion' was not found …
AmolR
  • 71
  • 1
  • 5
4
votes
0 answers

Cannot find module '../config/env Failed at 0.1.0 start script

it was working fine yesterday i don't know what happened npm is not starting instead giving the above error. help me pls.. npm start scripts not working pls someone help me i'm new to this field Husnains-Mini:~ husnaintahir$ cd…
mujtaba
  • 41
  • 1
4
votes
1 answer

After running npm start command line doesn't work

I'm hoping others have had this issue before.. I used npm start in the terminal to run my react project which opens through localhost:3000 fine, but then any following commands I write in the terminal don't execute! I want to be able to use…
BJones100
  • 57
  • 1
  • 7
4
votes
0 answers

How to update npm package readme file without updating version?

When I need to update my npm package readme file , I need to update it's version. Is it possible to update readme file without version update?
King Rayhan
  • 2,287
  • 3
  • 19
  • 23
4
votes
1 answer

How to run "material.angular.io" documentation website locally?

The material.angular.io is built on top of the Angular Material and I would like to run it locally in order to learn the Material2 and Angular best coding practices from this good example. I have cloned the material2 (((5.2.4)) tag) and built it,…
ieXcept
  • 1,088
  • 18
  • 37