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

React js code: 'MODULE_NOT_FOUND', not able to run reactjs?

I'm facing this issue after run npm i Actually this react app share by someone so right now i'm trying to run it in my PC. First of all i run npm i to install npm but this is giving error as given below:- I just want to run this code how can i do…
Rohit Verma
  • 3,657
  • 7
  • 37
  • 75
2
votes
1 answer

cannot link executable "node"- npm Error run in termux

cannot link executable "node": cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/usr/bin/node"... How do I fix this?
mahdidx
  • 21
  • 1
  • 2
2
votes
0 answers

How can I npm link the module in React project?

I working on a React project and I want to modify one of the module. Below is my step. File tree: /project package.json /project_need_module (the sub module) 1. cd /project/project_need_module 2. npm link 3. cd /project 4. npm link…
WILLIAM
  • 457
  • 5
  • 28
2
votes
2 answers

I am getting error EACCES: permission denied, open '/root/.pm2/module_conf.json' error after npm start command

When trying to run npm start, I get the error: Error: EACCES: permission denied, open '/root/.pm2/module_conf.json' at Object.openSync (node:fs:582:3) at Object.readFileSync (node:fs:450:35) at Object.Configuration.getAllSync…
2
votes
0 answers

npm ERR! notsup Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin"} (current: {"os":"win32","arch":"ia32"})

I have a local repo based on create-react-app. The file in the remote repo is working fine but there is a problem with the local one. I tried running npm install in my local repository and an error pops up showing npm ERR! code EBADPLATFORM npm ERR!…
2
votes
2 answers

Prevent npm start if node version mismatch

I have a project that needs Node >= V14 and would like to prevent npm script execution if node version does not match. Using .npmrc and engines in package.json, I can prevent npm install from running if node version does not match. However, is there…
Aayush Gupta
  • 63
  • 4
  • 12
2
votes
1 answer

Debug Excel javascript add-in on an existing excel file in Visual Studio Code

I try to debug an Excel Javascript Add-in using Office add-in debugger in Visual Studio Code. I want to configure the debugger to open an existing Excel file. I use the default configuration "Excel Desktop (Edge Chromium)" in launch.json. But each…
waze
  • 41
  • 3
2
votes
4 answers

import error: 'unsplash-js' does not contain a default export (imported as 'Unsplash')

Below is my code snippet: import React, { useState } from "react"; import Unsplash, { toJson } from "unsplash-js"; const unsplash = new Unsplash({ accessKey: "****", secret:"****" }); export default function SearchPhotos() { const…
Xavier
  • 21
  • 4
2
votes
0 answers

Angular // downgrade from Angular 11 to Angular 8

I need to enter in a project that is Angular 8.1.2 but using the command ng serve I get this error: This version of CLI is only compatible with Angular versions ^11.0.0-next || >=11.0.0 <12.0.0, but Angular version 8.1.2 was found instead. So my…
2
votes
0 answers

localhost:3000 refuses to connect when I run npm start

I tried to run my react app on localhost:3000, but it gave me the following errors and localhost refuses to connect. <--- Last few GCs ---> [3056:0x158008000] 942 ms: Scavenge 66.3 (94.3) -> 57.3 (94.3) MB, 5.1 / 0.0 ms (average mu = 0.993,…
Angie
  • 105
  • 8
2
votes
1 answer

Unable to resolve Could not find plugin "proposal-class-properties"

I have cloned a new project and after npm install, when I m doing npm start getting bellow error. "Could not find plugin "proposal-class-properties". Ensure there is an entry in ./available-plugins.js for it" I have searched for help here, but could…
Sunil Yerra
  • 53
  • 1
  • 7
2
votes
3 answers

How do I install NPM on a Chromebook?

I installed NodeJS (via Linux terminal) but it doesn't seem to come bundled with NPM: :~$ sudo apt-get install -y nodejs :~$ node -v :~$ v10.23.1 :~$ npm -v :~$ -bash: npm: command not found I have an Acer Chromebook R 13 with an ARM processor.
E. Espana
  • 23
  • 3
  • 7
2
votes
0 answers

Why does VSCode open browser.sh in a new window when running npm start for React?

I'm currently learning React and have just switched to a windows environment using wsl2 and remote vscode for development. When running npm start for starting the dev server, vscode opens a browser.sh window with the following info: #!/usr/bin/env…
Andrew Reynolds
  • 101
  • 1
  • 1
  • 3
2
votes
1 answer

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. "scripts": { "test": "echo \"Error: no test specified\"…
rajarshi
  • 31
  • 1
  • 3
2
votes
0 answers

npm start doesn't detect changes #React #Windows

Simply, react does not detect changes unless the batch job is ended and i restart the app using npm start I went through the troubleshooting: https://create-react-app.dev/docs/troubleshooting I am new to React and I struggle to understand all the…
TarinPG
  • 21
  • 1