All Questions
Tagged with npm-scripts node.js
418 questions
0
votes
1
answer
51
views
How to Resolve "The command 'node' is either misspelled or could not be found" Error on Windows?
If I want to start my React project with npm start I get this error:
The command "node" is either misspelled or
could not be found.
To my project:
node v: v22.11.0
npm v: 10.9.0
react: ^...
-2
votes
1
answer
291
views
Using Environment variable in package.json through dotenv-cli
In my react project want to start production environment through .env config port.
This is my .env file:
PORT = 3001
APP_BE_IP = 127.0.0.1
APP_BE_PORT = 3333
...
0
votes
1
answer
263
views
npm not working while node js is working fine , dont know what is the problem
I have tried everything to run npm, installed and uninstalled node js various times still npm is not running while node js version is showing by using node -v , that is v20.18.0, but npm -v , gives ...
0
votes
1
answer
242
views
How to Properly Pass Command-Line Options for Node Test Scripts in GitHub Actions?
I'm working on a GitHub Actions workflow that executes tests using an npm script defined in my package.json. However, I've noticed that some options seem to be ignored when passed in this context. For ...
1
vote
3
answers
47
views
How do I run 2 different functions from 1 file with 2 different command line prompts in Node.js?
I have a .js file in my project that imports an NPM package and has 2 functions that use that package:
//replacePaths.js
import {replaceInFile} from 'replace-in-file';
async function replace() {
...
0
votes
1
answer
70
views
Setup Configuration: Node.js / "npm start" doesn't work
npm command running in project path
Hello Developers,
I am trying to run the node.js commands - npm start and setting up a project with firebase the help of this article.
I have installed node.js ...
0
votes
0
answers
135
views
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-prefix.js'
i recently installed nodejs on my laptop running on win 11 . node -v ran perfectly . but tried running the script npm --version its showing this error
PS C:\Users\saikat mandal> node
Welcome to ...
0
votes
1
answer
207
views
WebStorm IDE 'Run script' runs npm but doesn't successfully execute .js file
New to Node, trying to follow a basic tutorial to launch a web browser. I'm using WebStorm as my IDE with node v22.3.0 and npm v10.8.1 and both commands are recognized by the terminal. The scripts ...
-1
votes
1
answer
435
views
NodeBB installation: SyntaxError: Unexpected token?
https://docs.nodebb.org/installing/os/ubuntu/
I am following the NodeBB documentation(link attached above) to setup nodeBB locally on my machine - However, I am stuck at "Installing nodeBB" ...
-2
votes
4
answers
795
views
How to know if my node module is being installed in dev mode or in dependency mode
There are two different situations where you run npm install:
You run npm install in your project's root directory
Someone added your module as a dependency of their own project and they run npm ...
-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 ...
0
votes
1
answer
232
views
Docker command `npm run` behaves different in GitLab and in local machine
I built the follow Docker container
FROM node:20-alpine as ember
WORKDIR /usr/app
COPY package*.json /usr/app/
RUN apk fix && \
apk --no-cache --update add git && \
npm clean-...
0
votes
0
answers
72
views
npm works only one time on one time connection to internet, requires frequent re-connection
Detailed Scenario
Connect to internet(wifi) on PC(pop-os)
Run an npm command - works fine
Run another npm command - stuck on (⠂⠂⠂) ⠧ idealTree:gdtot_data: sill idealTree buildDeps
Disconnect and ...
1
vote
0
answers
2k
views
Javascript bot to check visa appointment not working and I don't know how to fix it
I'm trying to make a bot that takes my credentials and checks the availability of visa interview appointments for my city's US consulate, but it's my first Javascript app and I'm running around like a ...
0
votes
1
answer
263
views
Run npm install for two different package.json in parallel
I want to run npm install for two different package.json in parallel or one after the other.
I have two package.json in two different folders under the same project. One is for the front end and one ...