【问题标题】:Error in Couldn't find a package.json file during vuepress-Travis CI construction在 vuepress-Travis CI 构建期间找不到 package.json 文件时出错
【发布时间】:2021-11-25 01:08:32
【问题描述】:

我能做什么? 这是出现问题的部分的代码

error Couldn't find a package.json file in "/home/travis/build/comter1/document"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "yarn document:build" exited with 1.
$ yarn cname
yarn run v1.22.4
error Couldn't find a package.json file in "/home/travis/build/comter1/document"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The command "yarn cname" exited with 1.
cache.2
store build cache
Done. Your build exited with 1

【问题讨论】:

  • 也许创建一个 package.json 文件?

标签: travis-ci yarnpkg


【解决方案1】:

尝试在 cname.sh 文件中更改以下内容:

echo 'comter1.github.io/document/' > document/.vuepress/dist/CNAME

echo 'comter1.github.io/document/' > ./.vuepress/dist/CNAME

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-03-19
    • 2017-07-12
    • 2020-02-22
    • 2017-04-22
    • 2015-04-25
    • 2020-07-17
    • 2018-05-30
    相关资源
    最近更新 更多