-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
bash-5.1# yarn
yarn install v1.22.18
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/2] ⢀ waiting...
error /disocrd/discord-bot/node_modules/skia-canvas: Command failed.
Exit code: 101
Command: node-pre-gyp install || npm run build -- --release
Arguments:
Directory: /disocrd/discord-bot/node_modules/skia-canvas
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | linux | arm64
node-pre-gyp info check checked for "/disocrd/discord-bot/node_modules/skia-canvas/lib/v6/index.node" (not found)
node-pre-gyp http GET https://skia-canvas.s3.us-east-1.amazonaws.com/v0.9.29/linux-arm64-napi-v6-musl.tar.gz
node-pre-gyp ERR! install response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v0.9.29/linux-arm64-napi-v6-musl.tar.gz
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v0.9.29/linux-arm64-napi-v6-musl.tar.gz
node-pre-gyp ERR! stack at /disocrd/discord-bot/node_modules/@mapbox/node-pre-gyp/lib/install.js:67:15
node-pre-gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:96:5)
node-pre-gyp ERR! System Linux 5.10.104-linuxkit
node-pre-gyp ERR! command "/usr/bin/node" "/disocrd/discord-bot/node_modules/skia-canvas/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /disocrd/discord-bot/node_modules/skia-canvas
node-pre-gyp ERR! node -v v16.14.2
node-pre-gyp ERR! node-pre-gyp -v v1.0.9
node-pre-gyp ERR! not ok
response status 403 Forbidden on https://skia-canvas.s3.us-east-1.amazonaws.com/v0.9.29/linux-arm64-napi-v6-musl.tar.gz
> [email protected] build
> cargo-cp-artifact -nc lib/v6/index.node -- cargo build --message-format=json-render-diagnostics "--release"
error: could not find `Cargo.toml` in `/disocrd/discord-bot/node_modules/skia-canvas` or any parent directory
Did not copy "cdylib:skia-canvas"
this's my docker file
FROM alpine:3.15.4
ENV GLIBC_VERSION 2.35-r0
# Download and install glibc
RUN apk add --update curl && \
curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
curl -Lo glibc.apk "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk" && \
curl -Lo glibc-bin.apk "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk" && \
apk add glibc-bin.apk glibc.apk && \
/usr/glibc-compat/sbin/ldconfig /lib /usr/glibc-compat/lib && \
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
apk del curl && \
rm -rf glibc.apk glibc-bin.apk /var/cache/apk/*
RUN apk update
RUN apk add bash
RUN apk add nodejs npm
RUN apk add fontconfig
I have already installed the cargo manually.
though below command
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Please Help. Best
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request