在 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 fsevents@1.1.2 and node@11.2.0 (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 fsevents@1.1.2 and node@11.2.0 (node-v67 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
解决方法是安装低版本的node (node@8):
brew search node
brew install node@8
brew unlink node
brew link --force --overwrite node@8