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

Deploy to gitlab - vitepress: not found #3887

Open
4 tasks done
XinleZhou2018 opened this issue May 13, 2024 · 1 comment
Open
4 tasks done

Deploy to gitlab - vitepress: not found #3887

XinleZhou2018 opened this issue May 13, 2024 · 1 comment
Labels
need more info Further information is requested question This is a question rather than an issue or pull request

Comments

@XinleZhou2018
Copy link

Describe the bug

When I commit my code to gitlab, it says: vitepress: not found
1

this is my .gitlab-ci.yml

image: node:18
pages:
  cache:
    paths:
      - node_modules/
  script:
    # - apk add git # 如果你使用的是像 alpine 这样的小型 docker 镜像,并且启用了 lastUpdated,请取消注释
    - npm install
    - npm run docs:build
  artifacts:
    paths:
      - public
  only:
    - main

why? is it because gitlab pages setting error? how to set?
2

Reproduction

see above

Expected behavior

see above

System Info

see above

Additional context

No response

Validations

@XinleZhou2018 XinleZhou2018 added the bug: pending triage Maybe a bug, waiting for confirmation label May 13, 2024
@brc-dd brc-dd added question This is a question rather than an issue or pull request and removed bug: pending triage Maybe a bug, waiting for confirmation labels May 14, 2024
@brc-dd
Copy link
Member

brc-dd commented May 14, 2024

I don't think you have vitepress listed in your package.json. That packages installed count in npm should be much more. Had you run npm add -D vitepress in your project?

@brc-dd brc-dd added the need more info Further information is requested label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested question This is a question rather than an issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants