eugeneware / ffmpeg-static

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

bug: unable to install with nvm #127

Closed Goddard closed 1 year ago

Goddard commented 1 year ago

ffmpeg-static version

whatever the latest from npm

Node.js version

16.20.0

operating system and/or environment

Manjaro host with ubutnu docker image No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal

What happened?

npm install --save ffmpeg-static npm ERR! command failed npm ERR! command sh -c -- node install.js npm ERR! /bin/bash: node: command not found

I am using nvm and it appears it can't find node.

which node /root/.nvm/versions/node/v16.20.0/bin/node

ralyodio commented 1 year ago

add to your path in .bashrc

Goddard commented 1 year ago

it is that is how i can execute it and use 'which node' in order to provide you the full path.

derhuerst commented 1 year ago

This problem seems unrelated to ffmpeg-static, but rather to your nvm installation, so I'm going to close it. Sorry.

The node install.js command specified in package.json as the install script (generated by build-package.js) expects node to be in your path, which should always be the case with a functioning Node.js installation, even when using nvm.