【发布时间】:2019-09-15 02:46:58
【问题描述】:
我想将 repos 安装到父 repo 并按分支名称指定。 我尝试了以下方法:
npm install username/repo#branchName --save
npm install username/repo@branchName --save
npm install username/repo#tag --save
npm install username/repo@tag --save
我收到一条错误消息:
Could not install from {theRepoWithBranch} as it does not contain a package.json file.
repo 肯定包含一个 package.json 文件。 鉴于我正在使用企业 npm 注册表,我想知道这是否是权限问题。
【问题讨论】:
标签: npm branch git-branch