vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

Deploy to gitlab - vitepress: not found

Open koalababy2024 opened this issue 1 year ago • 1 comments

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

koalababy2024 avatar May 13 '24 09:05 koalababy2024

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 avatar May 14 '24 14:05 brc-dd

Closing as stale. Please comment if you're still facing this issue.

brc-dd avatar Jul 01 '24 18:07 brc-dd