1. 程式人生 > >mac 編譯 video.js http-streaming

mac 編譯 video.js http-streaming

在 mac high sierra 上編譯 video.js http-streaming
按照官方介紹依次執行:

git clone https://github.com/videojs/http-streaming
cd http-streaming
npm i
npm run build

執行 npm i 期間遇到問題:

> node install

node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v67-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for 
[email protected]
and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp)  node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.2/fse-v1.1.2-node-v67-darwin-x64.tar.gz  node-pre-gyp ERR! Pre-built binaries not found for
[email protected]
and [email protected] (node-v67 ABI) (falling back to source compile with node-gyp)  gyp ERR! configure error 

解決方法是安裝低版本的node ([email protected]):

brew search node
brew install [email protected]
brew unlink node
brew link --force --overwrite [email protected]