Skip to main content

All Questions

Tagged with
-2 votes
0 answers
45 views

Why is npm run preview running into a site not found error?

I am following the tutorial at https://www.youtube.com/watch?v=NKqogVcqDHA, where I am Making a React project in WordPress, and here is the code from the boilerplate where I should be seeing what's ...
JustJed's user avatar
-4 votes
0 answers
16 views

Injecting internal SDK everytime there is an update

I have two applications and an internal SDK shared on both code bases. One in react and one in angular. Currently everytime we make a change to the SDK we need to manually build it and import the .tgz ...
Leonardo Suarez's user avatar
0 votes
0 answers
43 views

Why does running an npm script uses more memory than the process itself?

I have decided to optimize my deployment strategy recently, and started doing some tests about various stuff. One of them was deciding how to run processes. To test it, I've created a simple node.js ...
Baran Elitez's user avatar
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: ^...
JoF's user avatar
  • 43
-2 votes
1 answer
292 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 ...
ArtBindu's user avatar
  • 2,024
0 votes
1 answer
64 views

How do I add the original commit hash to the commit message when using the NPM package gh-pages?

I have a Svelte/TS project with an NPM script called "deploy" that uses gh-pages to commit the contents of my build/dist folder to a branch called gh-pages for automatic deploy on Github ...
Kauê Rodrigues's user avatar
2 votes
2 answers
318 views

Angular `npm start` command failing with missing "target" from proxy.conf.json

I'm trying to use Angular's hot reloading by proxying my API layer to the the API URL. So I'm using a proxy.conf.json file at the root of my project, with the following contents. { "/accounts/...
commadelimited's user avatar
0 votes
1 answer
264 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 ...
Abhay's user avatar
  • 1
-1 votes
1 answer
354 views

npm ERR! Missing script: "watch"

I'm trying to create a Symfony + React project, following the steps in the Symfony documentation. However, am unable to continue past npm install, as default npm commands such as npm run watch, npm ...
nimmbot's user avatar
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() { ...
MeltingDog's user avatar
  • 15.6k
0 votes
0 answers
19 views

How to pass a named parameter to npm-run-all command?

I have some scripts in package.json as "scripts": { "report:deleteOldReport": "node deleteReports.js", "runCypress": "npx cypress run", &...
zoe's user avatar
  • 75
0 votes
0 answers
105 views

Changing the "main" in package.json for one specific (expo) script

I have a simple react-native library and I am trying to make it so that I can easily test the code locally. I am using expo for local tests, and the input file for testing with expo is index.js. ...
The Blind Hawk's user avatar
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 ...
SAIKAT MANDAL's user avatar
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 ...
klex52s's user avatar
  • 437
3 votes
3 answers
1k views

Running npm run dev shows an error called 'The requested scope is invalid, unknown, or malformed.'

I'm learning how to create apps on Shopify and need some help. Whenever I run, npm run dev and click any key, it shows this even though I'm already logged in to Shopify. npm run dev > dev > ...
Jey-Es's user avatar
  • 53

15 30 50 per page
1
2 3 4 5
47