wechat-miniprogram / wechat-miniprogram/miniprogram-demo

如果Demo运行不起来?【2024-04-09】

Open
#137 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.2k
Forks
2.2k
Avg merge
10h 34m
Merged PRs (30d)
2

Description

我是新手,按照官方推荐压根不能运行代码。
搜索issue,找到关键解决方案:
https://github.com/wechat-miniprogram/miniprogram-demo/issues/125#issue-1957859089

另外,如果是 download zip 方式,在进行到 npm run init --legacy-peer-deps 时,会报错:

...
fatal: not a git repository (or any of the parent directories): .git

继续:git init
然后在继续执行 npm run init --legacy-peer-deps,成功!

此时,项目会报错:
image

找到对应目录,删除该项即可。

接下来愉快地运行吧!!!

BTW,吐槽一下,这么大官方Demo这么多问题也是头一次见!希望大佬长点心吧,😄

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.

Research direction

Start by reproducing the setup with npm run init --legacy-peer-deps, including the download-ZIP path and the reported git error. Inspect the directory referenced by the screenshot and verify the demo can initialize and run from the documented setup process; the issue does not name a specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.