win11环境配置

Open Beginner friendly
#1 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
powershell, shell

Research direction

Start by reading Makefile and scripts/build_web.sh, then reproduce make web in Windows PowerShell. Document the required make installation, Git shell environment, and Windows environment-variable setup; done when a Windows 11 user can follow the instructions to run the web build successfully.

Written by the indexing model from the issue text.

Description

问题1:powershell无make
(.venv) PS C:xxxxxxxxxxxxxxxxxxxxxx> make web
make : 无法将“make”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1

+ make web
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (make:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

【建议解决方案】

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
scoop install make

问题2:build_web.sh 是 Unix Shell 脚本,但 PowerShell 中没有 env / sh。
(.venv) PS C:xxxxxxxxx> make web
./scripts/build_web.sh
process_begin: CreateProcess(NULL, env sh C:\Users\bambo\Documents\Projects\whale-cli\scripts\build_web.sh, ...) failed.
make (e=2): ϵͳ������ָ�����ļ���
make: *** [Makefile:7: web] Error 2

【建议解决方案】使用git的sh

(Get-Command git).Source
$gitRoot = Split-Path (Split-Path (Get-Command git).Source)
$env:Path = "$gitRoot\usr\bin;$gitRoot\bin;$env:Path"
make web

问题3:win11的环境变量配置

$env:xxxx=xxxxx
Dominant language
HTML
Stars
10
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.