Skip to main content
-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
33 views

How to make @tailwind/cli run other npm scripts after --watch?

This is my package.json "scripts": { "dev:tailwind": "npx @tailwindcss/cli -i ./src/assets/styles/input.css -o ./dist/assets/styles/output.css", "dev:...
aboutjquery's user avatar
0 votes
0 answers
46 views

How to use Yarn PnP Zero-Installs in CI when platform-specific packages are required?

I'm changing a project to use Zero-Installs (where .yarn/cache is committed). It works on local because the process is yarn and it builds the .yarn/cache and runs the post-install scripts necessary to ...
FlavorScape's user avatar
  • 14.4k
2 votes
1 answer
185 views

vite dependency resolving issue: missing ... specifier

I have an old Laravel project where https://materializecss.com is used. Problem is it's old and buggy and it's abandonded in 2018. I decided to switch to popular fork - https://materializeweb.com. But ...
barmaxon's user avatar
  • 179
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
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 ...
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
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 ...
Abhay's user avatar
  • 1
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 ...
iamwen1023's user avatar
2 votes
0 answers
47 views

Module parse failed: Unexpected token in react-idle-timer with React Scripts

I’m encountering an error when trying to compile my React project that uses the react-idle-timer package. The error points to an unexpected token in index.esm.js of react-idle-timer, specifically on ...
serenity8468's user avatar
-1 votes
1 answer
353 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
0 votes
1 answer
106 views

npm-run-script with commander.js

Good day. The question is simple, how to pass flags/options to npm-run-script and read them using commander.js. Example: package.json { "scripts": { "start": "node index....
babinik's user avatar
  • 648

15 30 50 per page
1
2 3 4 5
72