Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

725
Vistas
npm ERR! could not determine executable to run

I wanna run my project by npm run watch and when I do nothing, it suddenly appears an error like this.

git:(master) ✗ npm run watch

> watch
> npx mix watch

npm ERR! could not determine executable to run

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/bintangtobing/.npm/_logs/2021-06-04T08_11_16_499Z-debug.log

Does anyone know about these errors?

I have already did a solution, it is

delete node_modules on the project folder and run an npm install and it still got the same error.

Can anyone help me, please? Thank you, everyone.

over 4 years ago · Santiago Trujillo
6 Respuestas
Responde la pregunta

0

npm install

I had this problem after trying to debug a build issue. I deleted the node_modules and ran the app in a docker container. But this meant the husky npm package wasn't available locally anymore so a simple npm install fixed the problem

over 4 years ago · Santiago Trujillo Denunciar

0

Ended up doing

rm -rf .git/hooks
npm install

Followin this sugestion https://github.com/npm/cli/issues/1845#issuecomment-814884999

Worked for me

over 4 years ago · Santiago Trujillo Denunciar

0

I had to downgrade node from v17.0.1 to v14.18.1, because newer node-version was not supported by one of my project's dependencies.

( e.g. via "nvm use 14", see Node Version Manager )

over 4 years ago · Santiago Trujillo Denunciar

0

My issue was is that I was mistakenly calling npx start instead of npm start.

I was doing this from the CMD line in my Dockerfile.

I realize this isn't the OPs question, but the error and title may bring others here who are getting this error.

over 4 years ago · Santiago Trujillo Denunciar

0

just use npm install then -> npm start

over 4 years ago · Santiago Trujillo Denunciar

0

It worked for me:

npm uninstall husky && npm install --save-dev husky@4

It happens because git is trying to find a file that doesn't exist (in version 5) so downgrading helps, I know that's not the best solution but could help someone.

Or try to migrate husky (4 to 7):

https://github.com/typicode/husky-4-to-7

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda