kubernetes / website

Kubernetes website and documentation repo:
https://kubernetes.io
Creative Commons Attribution 4.0 International
4.36k stars 14.1k forks source link

Need assistance with running the website locally on Windows #40803

Closed reerajput930 closed 1 year ago

reerajput930 commented 1 year ago

This is Support

already read doc - the Running the website locally using Hugo

and also run these command on the vscode

npm ci
make serve

However, got this error

make: The term 'make' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the      
name, or if a path was included, verify that the path is correct and try   
again.


I am a MERN stack developer, having one year of experience in it, however, I am new to open source contribution and really needed support from you guys, so plz try to help me to set up this website locally as I really wanted to contribute.

k8s-ci-robot commented 1 year ago

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
dipesh-rawat commented 1 year ago

@reerajput930 It appears that you're on Windows and it seems that the 'make' is not installed or located in PATH environment variable that Windows can access. You could resolve this issue by installing 'make' or by updating the PATH environment variable on your system. Here is a helpful resource for remediation https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows.

You can also post your question on the Kubernetes Slack or the Discuss Kubernetes forum.

reerajput930 commented 1 year ago

I have installed make by choco install make

After running the command make server I am getting the below error

make: *** No rule to make target 'server'.  Stop.

please, help me out!

dipesh-rawat commented 1 year ago

After running the command make server I am getting the below error

@reerajput930 To run the website locally using Hugo, you need to use the command make serve instead of server. You can find the instructions for this in the documentation provided at https://github.com/kubernetes/website#running-the-website-locally-using-hugo.

reerajput930 commented 1 year ago

after running make serve, I am getting the error.

'git' is not recognized as an internal or external command,
operable program, or batch file.
make: *** [Makefile:28: module-check] Error 255
dipesh-rawat commented 1 year ago

@reerajput930 Looks like Windows cannot locate 'git' command. Could you please install 'git' (just like make earlier) using choco install git.install (Refer link)

dipesh-rawat commented 1 year ago

/retitle Need assistance with running the website locally on Windows

dipesh-rawat commented 1 year ago

Nothing to fix in k8s docs.

/close

k8s-ci-robot commented 1 year ago

@dipesh-rawat: Closing this issue.

In response to [this](https://github.com/kubernetes/website/issues/40803#issuecomment-1527270752): >Nothing to fix in k8s docs. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.