【问题标题】:How to import a local git repo in lerna?如何在 lerna 中导入本地 git repo?
【发布时间】:2019-08-07 19:23:12
【问题描述】:

我是第一次尝试使用 lerna。当我使用时:

lerna import /path/to/my/create_react_app

这是回复:

lerna notice cli v3.13.1
lerna ERR! Error: Command failed: git rev-parse HEAD
lerna ERR! fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
lerna ERR! Use '--' to separate paths from revisions, like this:
lerna ERR! 'git <command> [<revision>...] -- [<file>...]'
lerna ERR! 
lerna ERR! HEAD
lerna ERR! 
lerna ERR!     at makeError (/usr/local/lib/node_modules/lerna/node_modules/execa/index.js:174:9)
lerna ERR!     at Function.module.exports.sync (/usr/local/lib/node_modules/lerna/node_modules/execa/index.js:338:15)
lerna ERR!     at Object.execSync (/usr/local/lib/node_modules/lerna/node_modules/@lerna/child-process/index.js:22:16)
lerna ERR!     at ImportCommand.getCurrentSHA (/usr/local/lib/node_modules/lerna/node_modules/@lerna/import/index.js:129:34)
lerna ERR!     at ImportCommand.initialize (/usr/local/lib/node_modules/lerna/node_modules/@lerna/import/index.js:98:31)
lerna ERR!     at Promise.resolve.then (/usr/local/lib/node_modules/lerna/node_modules/@lerna/command/index.js:271:24)

如何将本地 repo 导入 lerna 包文件夹? (git 版本 2.17.2 (Apple Git-113))

【问题讨论】:

    标签: node.js reactjs git lerna


    【解决方案1】:

    我找到了解决方案:提交 lerna repo 并重试。

    【讨论】:

    猜你喜欢
    • 2015-11-17
    • 1970-01-01
    • 2020-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多