node-pre-gyp install --fallback-to-build --update-binary
配置
npm config set proxy http://
npm config ls
npm config set registry https://registry.npmmirror.com
npm install
npm run build
修改项目.npmrc
canvas_binary_host_mirror=https://registry.npmmirror.com/-/binary/canvas