Node.js v22.2.0 [nodemon] app crashed - waiting for file changes before starting...

alguien me puede ayudar con este error que me sale al ejecutar el asistente vistual?
la terminal arroja el siguiente error: PS C:\Users\m4rti\OpenSports\base-ts-baileys-memory> npm install

up to date, audited 456 packages in 2s

93 packages are looking for funding
run npm fund for details

found 0 vulnerabilities
PS C:\Users\m4rti\OpenSports\base-ts-baileys-memory> npm run dev

> base-bailey-json@1.0.0 dev
> npm run lint && nodemon ./src/app.ts

> base-bailey-json@1.0.0 lint
> eslint . --no-ignore

[nodemon] 3.1.0
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): src***
[nodemon] watching extensions: ts
[nodemon] starting tsx ./src/app.ts
🛜 HTTP Server ON
[GET]: http://localhost:3008/

⚡⚡ ACTION REQUIRED ⚡⚡
You must scan the QR Code
Remember that the QR code updates every minute
Need help: https://link.codigoencasa.com/DISCORD

C:\Users\m4rti\OpenSports\base-ts-baileys-memory\node_modules\sharp\lib\sharp.js:114
throw new Error(help.join('\n'));
^

Error: Could not load the "sharp" module using the win32-x64 runtime
ERRDLOPENFAILED: The specified procedure could not be found.
\?\C:\Users\m4rti\OpenSports\base-ts-baileys-memory\node_modules\@img\sharp-win32-x64\lib\sharp-win32-x64.node
Possible solutions:

  • Ensure optional dependencies can be installed:
    npm install --include=optional sharp
    yarn add sharp --ignore-engines

  • Ensure your package manager supports multi-platform installation:
    See [https://sharp.pixelplumbing.com/install](https://sharp.pixelplumbing.com/install)#cross-platform

  • Add platform-specific dependencies:
    npm install --os=win32 --cpu=x64 sharp

  • Using the canvas package on Windows?
    See [https://sharp.pixelplumbing.com/install](https://sharp.pixelplumbing.com/install)#canvas-and-windows

  • Check for outdated versions of sharp in the dependency tree:
    npm ls sharp

  • Consult the installation documentation:
    See https://sharp.pixelplumbing.com/install
    at Object. (C:\Users\m4rti\OpenSports\base-ts-baileys-memory\nodemodules\sharp\lib\sharp.js:114:9) at Module.compile (node:internal/modules/cjs/loader:1434:14)
    at Object.h (C:\Users\m4rti\OpenSports\base-ts-baileys-memory\nodemodules\tsx\dist\global-require-patch-faFw5e4x.cjs:1:1100) at Module.load (node:internal/modules/cjs/loader:1249:32) at Module.load (node:internal/modules/cjs/loader:1065:12)
    at Module.require (node:internal/modules/cjs/loader:1271:19)
    at require (node:internal/modules/helpers:123:16)
    at Object. (C:\Users\m4rti\OpenSports\base-ts-baileys-memory\nodemodules\sharp\lib\constructor.js:10:1) at Module.compile (node:internal/modules/cjs/loader:1434:14)
    at Object.h (C:\Users\m4rti\OpenSports\base-ts-baileys-memory\node_modules\tsx\dist\global-require-patch-faFw5e4x.cjs:1:1100)

Node.js v22.2.0
[nodemon] app crashed - waiting for file changes before starting…

1 Replies

a year ago

I'm seeing windows file paths, I'm sorry but we can't provide coding help here, these forums are for platform help.