vitepress
vitepress copied to clipboard
Deploy to gitlab - vitepress: not found
Describe the bug
When I commit my code to gitlab, it says: vitepress: not found
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?
Reproduction
see above
Expected behavior
see above
System Info
see above
Additional context
No response
Validations
- [X] Check if you're on the latest VitePress version.
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
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?
Closing as stale. Please comment if you're still facing this issue.