Installation
Please note that these instructions use Yarn. You should be able to do quite the same with npm though, but the lockfile is in yarn format, so I'm not officially supporting npm.
Windows
- Install ffmpeg and add it to your path.
- Open cmd as an administrator, and install windows build tools that node-gyp needs (
yarn global windows-build-tools
)
- Install node-gyp (
yarn global node-gyp
)
- Clone the repository or download a release.
- Then open a normal terminal window in the cloned reposity and run
yarn
to install things
- And then run
yarn run config
to generate a configuration file.
Troubleshooting
If you have multiple python installations: yarn config set python C:/path/to/executable/python2.7
If it still fails at step 3 or 4, open cmd as admin and type SET VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140
, replacing any wrong paths with the real path.
For me it was trying to use V120 when it was installed at V140. Then continue from step 3 again.
Other platforms
- Install ffmpeg and add it to your path.
- Clone the repository or download a release.
- Install node-gyp.
- Run
yarn
- Run
yarn run config