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

How to install dependenies? #11

Open
nmezhenskyi opened this issue Feb 28, 2023 · 1 comment
Open

How to install dependenies? #11

nmezhenskyi opened this issue Feb 28, 2023 · 1 comment

Comments

@nmezhenskyi
Copy link

Could you give an example on how to install required frontend dependencies and run the example? I was following this guide but encountered issues with installing dependencies for the frontend.

@jacquayj
Copy link

jacquayj commented Apr 4, 2023

@nmezhenskyi If your error looked something like this:

error An unexpected error occurred: "https://roadiehq.jfrog.io/artifactory/api/npm/roadiehq/react-copy-to-clipboard/-/react-copy-to-clipboard-5.1.0.tgz: Request failed "401 Unauthorized"".

It's because example/yarn.lock is referencing a private repo:

...
  resolved "https://roadiehq.jfrog.io/artifactory/api/npm/roadiehq/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
...

https://github.com/gendocu-com/grpc-docs/blob/master/example/yarn.lock#L7

The solution is to run yarn install from the repo's root directory. Then yarn build from the example/ directory. Here's a working Dockerfile:

FROM node:19 as build

WORKDIR /app

RUN git clone https://github.com/gendocu-com/grpc-docs.git

WORKDIR /app/grpc-docs

# pin to version
RUN git reset --hard b431901

RUN yarn install
WORKDIR /app/grpc-docs/example

RUN yarn build

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

2 participants