eugeneware / ffmpeg-static

ffmpeg static binaries for Mac OSX and Linux and Windows
GNU General Public License v3.0
1.11k stars 182 forks source link

bug: Install Error On Linux (incompatiblity issues?) #123

Closed create-juicey-app closed 11 months ago

create-juicey-app commented 1 year ago

ffmpeg-static version

ffmpeg-static@latest

Node.js version

20.0.0

operating system and/or environment

What happened?

I get on the console while installing ffmpeg-static & other using npm i (npm install)

npm ERR! code 1
npm ERR! path \\wsl.localhost\Debian\home\juicey\jtooly\node_modules\ffmpeg-static
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node install.js
npm ERR! '\\wsl.localhost\Debian\home\juicey\jtooly\node_modules\ffmpeg-static'
npm ERR! CMD.EXE a �t� d�marr� avec le chemin d'acc�s comme r�pertoire en
npm ERR! cours. Les chemins d'acc�s UNC ne sont pas prise en charge. Utilisation
npm ERR! du r�pertoire Windows par d�faut.
npm ERR! node:internal/modules/cjs/loader:1085
npm ERR!   throw err;
npm ERR!   ^
npm ERR!
npm ERR! Error: Cannot find module 'C:\Windows\install.js'
npm ERR!     at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
npm ERR!     at Module._load (node:internal/modules/cjs/loader:928:27)
npm ERR!     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
npm ERR!     at node:internal/main/run_main_module:23:47 {
npm ERR!   code: 'MODULE_NOT_FOUND',
npm ERR!   requireStack: []
npm ERR! }
npm ERR!
npm ERR! Node.js v20.0.0

npm ERR! A complete log of this run can be found in: C:\Users\enzo_\AppData\Local\npm-cache\_logs\2023-06-13T22_59_13_186Z-debug-0.log

heres all modules

    "@emotion/react": "^11.10.6",
    "@emotion/styled": "^11.10.6",
    "@mui/icons-material": "^5.11.11",
    "@mui/lab": "^5.0.0-alpha.133",
    "@mui/material": "^5.11.14",
    "@mui/material-next": "^6.0.0-alpha.79",
    "@mui/x-date-pickers": "^6.6.0",
    "@next-auth/mongodb-adapter": "^1.1.2",
    "@vercel/analytics": "^1.0.0",
    "axios": "^1.3.5",
    "body-parser": "^1.20.2",
    "colors": "^1.4.0",
    "cors": "^2.8.5",
    "dayjs": "^1.11.8",
    "express": "^4.18.2",
    "fast-xml-parser": "^4.2.4",
    "ffmpeg-static": "^5.1.0",
    "fluent-ffmpeg": "^2.1.2",
    "formidable": "^3.2.5",
    "huggingface": "^1.4.0",
    "i18next": "^22.4.14",
    "i18next-browser-languagedetector": "^7.0.1",
    "i18next-http-backend": "^2.2.0",
    "js-cookie": "^3.0.5",
    "mongodb": "^5.6.0",
    "mv": "^2.1.1",
    "net": "^1.0.2",
    "next": "^13.2.4",
    "next-auth": "^4.22.1",
    "next-i18next": "^13.2.2",
    "nextjs-google-analytics": "^2.3.3",
    "nookies": "^2.5.2",
    "openai": "^3.2.1",
    "ping": "^0.4.4",
    "prop-types": "^15.8.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-i18next": "^12.2.0",
    "react-markdown": "^8.0.7",
    "react-swipeable-views": "^0.14.0",
    "recharts": "^2.5.0",
    "request-ip": "^3.3.0",
    "three": "^0.153.0",
    "uuid": "^9.0.0",
    "ytdl-core": "^4.11.4"

I hope you could respond fast, thank you !

derhuerst commented 1 year ago

Based on the following output lines, it seems that node install.js gets executed in C:\Windows instead of the ffmpeg_static install location.

npm ERR! path \\wsl.localhost\Debian\home\juicey\jtooly\node_modules\ffmpeg-static
…
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node install.js
npm ERR! '\\wsl.localhost\Debian\home\juicey\jtooly\node_modules\ffmpeg-static'
…
npm ERR! Error: Cannot find module 'C:\Windows\install.js'

Unfortunately, I can't tell why this is happening; And I can't (try to) reproduce the error because I don't use Windows. Can someone help here?

derhuerst commented 1 year ago

@create-juicey-app At the bottom of the npm error output, it mentions the fully detailed log. Can you upload it here?

create-juicey-app commented 11 months ago

Sorry, a lot of time has passed, and yes I did fixed the issue.