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 (node@8):

brew search node
brew install node@8
brew unlink node
brew link --force --overwrite node@8

猜你喜欢

转载自blog.csdn.net/imliutao2/article/details/84850022