-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error installing ^2.0.0 with yarn #8
Comments
You need to set up the development environment for Rust to compile the binary. You can simply install |
After installing rustup, I get another error (macOS 11.4, node 16.5.0, npm 7.20.0, yarn 1.23.0): error /Users/<project-path>/node_modules/node-crc: Command failed.
Exit code: 127
Command: npm run build
Arguments:
Directory: /Users/<project-path>/node_modules/node-crc
Output:
> node-crc@2.0.10 build
> cargo-cp-artifact -nc index.node -- cargo build --release --message-format=json-render-diagnostics && tsc
Updating crates.io index
Compiling typenum v1.13.0
Compiling proc-macro2 v1.0.27
Compiling version_check v0.9.3
Compiling unicode-xid v0.2.2
Compiling neon-build v0.8.3
Compiling syn v1.0.73
Compiling stable_deref_trait v1.2.0
Compiling cfg-if v1.0.0
Compiling byteorder v1.4.3
Compiling heapless v0.5.6
Compiling semver-parser v0.7.0
Compiling smallvec v1.6.1
Compiling cslice v0.2.0
Compiling libloading v0.6.7
Compiling hash32 v0.1.1
Compiling semver v0.9.0
Compiling generic-array v0.14.4
Compiling neon-runtime v0.8.3
Compiling neon v0.8.3
Compiling quote v1.0.9
Compiling generic-array v0.12.4
Compiling generic-array v0.13.3
Compiling as-slice v0.1.5
Compiling crc-any v2.3.12
Compiling neon-macros v0.8.3 |
On docker build with github-actions I get:
|
It seems that your Rust is too old... (see https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1400-2019-12-19) You don't need to use docker. Just run |
ok but I do use docker in my build pipeline, so updating this dependency to v2 requires me to integrate rust, if not someone will perform suggestions of #9 eventually |
I just ran into the same issue and made it work by the following steps on my M1 Pro Macbook Pro.
|
Thanks @hk-tony I was finally able to get v2 running with following steps: Add yarn add typescript --dev Install rustup toolchain on MacOS # for Intel or M1 macs
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh Add rustup toolchain to Docker # for alpine-based images
RUN apk add rustup build-base
RUN rustup-init -y
ENV PATH "/root/.cargo/bin:$PATH"
ENV RUSTFLAGS="-C target-feature=-crt-static" |
Nevertheless solving #9 would be a cleaner and better solution regarding CI/CD... |
When I try to install any version > 2.0.0 with yarn on macOS, I get following error:
Find the log-file attached:
2021-06-30T13_29_53_039Z-debug.log
The text was updated successfully, but these errors were encountered: