Website: yarn or npm? that's the problem!

Created on 4 Aug 2020  ·  8Comments  ·  Source: kubernetes/website

This is a Bug Report

As discussed in the SIG-Docs meeting, the current steps for building doc website in README is incomplete in the following point of views.

  • It requires yarn on top of npm, but yarn.lock is missing and package-lock.json is there.

    • npm ci did not work for me but I need further investigation on it.

  • The build step is going to be equal in containerized and local in https://github.com/kubernetes/website/issues/22515 , but yarn installation or npm ci is currently missing in make container-image.

Proposed Solution:

  1. Use npm and remove yarn from the dependency
  2. Run the npm command inside of the container

Page to Update:

N/A

areweb-development kinbug prioritimportant-longterm sicontributor-experience

Most helpful comment

Here's my cat picture after the sig-docs meeting lol

Image from iOS (4)

All 8 comments

Here's my cat picture after the sig-docs meeting lol

Image from iOS (4)

AIUI, the live website build (within Netlify) relies on npm, and does _not_ use Yarn.

/area web-development

@sftim Could you have a quick look if npm ci in local works just fine?

@sftim Could you have a quick look if npm ci in local works just fine?

Yes, I believe so.

npm ci worked in my local environment

/kind bug
/priority important-longterm

/sig contributor-experience
I suppose

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gochist picture gochist  ·  3Comments

sftim picture sftim  ·  4Comments

neha-viswanathan picture neha-viswanathan  ·  3Comments

shruthibhaskar picture shruthibhaskar  ·  3Comments

ahmetb picture ahmetb  ·  4Comments