Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-cavans 安装失败 #89

Closed
zongcong opened this issue May 19, 2021 · 9 comments
Closed

node-cavans 安装失败 #89

zongcong opened this issue May 19, 2021 · 9 comments

Comments

@zongcong
Copy link

image
请问是不是作者这个库是不是用了这个依赖?

@Binaryify
Copy link
Owner

用cnpm安装

@qihui1223
Copy link

qihui1223 commented May 24, 2021

我也是[email protected] install: node-pre-gyp install --fallback-to-build 报错,查看了这个库的,我使用的是node 64位 14.17.0版本,用的是cnpm镜像,怎么安装都报错

@gswy
Copy link

gswy commented Jan 18, 2022

遇到了同样的问题,实际我点开那个下载地址,提示404。
下载位置不对,修一下吧。

@Binaryify
Copy link
Owner

@gswy 更新新版本看看

@gswy
Copy link

gswy commented Mar 8, 2022

@Binaryify cnpm npm yarn都有试过。三者都是报同一个错误。

✔ Installed 1 packages
✔ Linked 63 latest versions
[1/1] scripts.install [email protected][email protected] run "node-pre-gyp install --fallback-to-build", root: "/Users/wanyun/Project/wanyun/epidemic-prevention/admin/node_modules/[email protected]@canvas"
node-pre-gyp http GET https://cdn.npmmirror.com/binaries/canvas/v2.9.0/canvas-v2.9.0-node-v93-darwin-unknown-arm64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://cdn.npmmirror.com/binaries/canvas/v2.9.0/canvas-v2.9.0-node-v93-darwin-unknown-arm64.tar.gz 
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v93 ABI, unknown) (falling back to source compile with node-gyp) 
node-pre-gyp WARN Hit error response status 404 Not Found on https://cdn.npmmirror.com/binaries/canvas/v2.9.0/canvas-v2.9.0-node-v93-darwin-unknown-arm64.tar.gz 
Package pixman-1 was not found in the pkg-config search path.

@Binaryify
Copy link
Owner

@gswy 你是m1芯片吗

@gswy
Copy link

gswy commented Mar 10, 2022

@Binaryify 是的,M1。我没有x86的主机可以供测试

@Binaryify
Copy link
Owner

@gswy cnpm 安装后面 加 --target_arch=x64

@Binaryify Binaryify pinned this issue Mar 10, 2022
@Binaryify
Copy link
Owner

新版本已经移除canvas的依赖了,现在安装应该没啥阻碍了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants