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

Fix #814, Install specific versions of npm and yarn #815

Merged
merged 1 commit into from
Nov 23, 2022

Conversation

softcat477
Copy link
Contributor

@softcat477 softcat477 commented Nov 23, 2022

Resolves #814
Use alpine=3.16 to use npm=8.10.0-r0. The latest npm version in alpine=3 is 9.1.2-r0 which causes error when installing pixel-wrapper. Alpine does not support installing a specific version off its packages, so the solution is using alpine3.16 which natively use the npm version we want.

This is the error message when using the incorrect npm version 9.1.2-r0

022-11-23T02:58:41Z Step 10/38 : RUN ./node_modules/.bin/gulp develop:rodan
2022-11-23T02:58:41Z ---> Running in af7bdf53cb38
2022-11-23T02:58:44Z [02:58:44] Using gulpfile /pixel_wrapper/gulpfile.js
2022-11-23T02:58:44Z [02:58:44] Starting 'develop:rodan'...
2022-11-23T02:58:44Z [02:58:44] Starting 'develop:lint'...
2022-11-23T02:58:44Z [02:58:44] Starting 'lint-src'...
2022-11-23T02:58:47Z [02:58:47] Finished 'lint-src' after 2.82 s
2022-11-23T02:58:47Z [02:58:47] Starting 'lint-test'...
2022-11-23T02:58:47Z [02:58:47] Finished 'lint-test' after 11 ms
2022-11-23T02:58:47Z [02:58:47] Starting 'lint-gulpfile'...
2022-11-23T02:58:47Z [02:58:47] Finished 'lint-gulpfile' after 34 ms
2022-11-23T02:58:47Z [02:58:47] Finished 'develop:lint' after 2.88 s
2022-11-23T02:58:47Z [02:58:47] Starting 'develop:clean'...
2022-11-23T02:58:47Z [02:58:47] Finished 'develop:clean' after 4.25 ms
2022-11-23T02:58:47Z [02:58:47] Starting 'develop:build-plugins'...
2022-11-23T02:58:49Z �[91m[02:58:49] �[0m�[91m'develop:build-plugins' errored after 1.72 s
2022-11-23T02:58:49Z �[0m�[91m[02:58:49] Error: error:0308010C:digital envelope routines::unsupported

The latest npm version when using apk add npm in alpine:3 is 9.1.2-r0, which was built in 2022-11-19. See here: https://pkgs.alpinelinux.org/package/edge/community/x86_64/npm

Use npm=8.10.0-r0 or else we cannot build pixel_wrapper.
@softcat477 softcat477 merged commit 4109e22 into develop Nov 23, 2022
@softcat477 softcat477 deleted the fix-npm-version branch November 28, 2022 05:15
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

Successfully merging this pull request may close these issues.

Fix npm and yarn versions in python3-celery
1 participant