:wave: I'm struggling running `SUB_BUILD=PLATFORM ...
# contributing-to-airbyte
u
👋 I'm struggling running
SUB_BUILD=PLATFORM ./gradlew build
on the master branch. I'm on a Macbook M1 and I've set some specific env var as suggested in the doc (you can find it below). The build is failing on the
airbyte-webapp:npmInstall
task with the error below. I installed node 16 and logged to npm with
npm login
. Env vars:
Copy code
export DOCKER_BUILD_PLATFORM=linux/arm64
export DOCKER_BUILD_ARCH=arm64
export JDK_VERSION=17
export NODE_VERSION=16.13.0
export PATH="/opt/homebrew/opt/node@16/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/node@16/lib"
export CPPFLAGS="-I/opt/homebrew/opt/node@16/include"
Error:
Copy code
npm ERR! code E401
npm ERR! Incorrect or missing password.
npm ERR! If you were trying to login, change your password, create an
npm ERR! authentication token or enable two-factor authentication then
npm ERR! that means you likely typed your password in incorrectly.
npm ERR! Please try again, or recover your password at:
npm ERR!     <https://www.npmjs.com/forgot>
npm ERR!
npm ERR! If you were doing some other operation then your saved credentials are
npm ERR! probably out of date. To correct this please try logging in again with:
npm ERR!     npm login
d
Augustin did you solve this?
u
No 😞
u
why are you using 17? is that an M1 thing?
u
ah okay I see that’s an M1 thing
u
you have JDK 14 installed?
u
Yes
d
did you try the workarounds in this issue? https://github.com/npm/npm/issues/10791
No, thanks! I'll check this out and keep you updated.
u
@Jared Rhizor (Airbyte) is the other person running M1 so he might be able to help out
u
@Davin Chia (Airbyte) I think my problem is due to some private npm registries listed in
package.json
. It looks like
fortawesome
registry requires an auth to be downloaded, e.g. this one
u
Probably related to this issue on our repo