Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 为什么对于纱线和原始NPM客户机,从拉动请求安装包的参考不同?_Git_Github_Npm_Pull Request_Yarnpkg - Fatal编程技术网

Git 为什么对于纱线和原始NPM客户机,从拉动请求安装包的参考不同?

Git 为什么对于纱线和原始NPM客户机,从拉动请求安装包的参考不同?,git,github,npm,pull-request,yarnpkg,Git,Github,Npm,Pull Request,Yarnpkg,因为我们识别安装Node.js包的PR的方式在使用Yarn客户端时不同,在使用原始NPM命令行客户端时也不同,例如: npm install json-schema-faker/json-schema-faker#pull/129/head 及 请注意,在纱线的情况下,包装标识符中没有pull/段 以其他方式尝试会产生以下结果: $ npm install json-schema-faker/json-schema-faker#129/head npm ERR! git rev-list -n

因为我们识别安装Node.js包的PR的方式在使用Yarn客户端时不同,在使用原始NPM命令行客户端时也不同,例如:

npm install json-schema-faker/json-schema-faker#pull/129/head

请注意,在纱线的情况下,包装标识符中没有
pull/

以其他方式尝试会产生以下结果:

$ npm install json-schema-faker/json-schema-faker#129/head
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! Darwin 15.6.0
npm ERR! argv "$HOME/.nvm/versions/node/v7.7.3/bin/node" "$HOME/.nvm/versions/node/v7.7.3/bin/npm" "install" "json-schema-faker/json-schema-faker#129/head"
npm ERR! node v7.7.3
npm ERR! npm  v4.1.2
npm ERR! code 128

npm ERR! Command failed: git rev-list -n1 129/head
npm ERR! fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     $HOME/Projects/playground/npm-debug.log
$npm安装json模式伪造者/json模式伪造者#129/head
npm错误!git版本列表-n1 129/head:致命:参数“129/head”不明确:未知版本或路径不在工作树中。
npm错误!git版本列表-n1 129/头:使用“---”将路径与版本分开,如下所示:
npm错误!吉特版本列表-n1 129/标题:“吉特[…]--[…]”
npm错误!git版本列表-n1 129/头:
npm错误!git版本列表-n1 129/head:致命:参数“129/head”不明确:未知版本或路径不在工作树中。
npm错误!git版本列表-n1 129/头:使用“---”将路径与版本分开,如下所示:
npm错误!吉特版本列表-n1 129/标题:“吉特[…]--[…]”
npm错误!git版本列表-n1 129/头:
npm错误!git版本列表-n1 129/head:致命:参数“129/head”不明确:未知版本或路径不在工作树中。
npm错误!git版本列表-n1 129/头:使用“---”将路径与版本分开,如下所示:
npm错误!吉特版本列表-n1 129/标题:“吉特[…]--[…]”
npm错误!git版本列表-n1 129/头:
npm错误!达尔文15.6.0
npm错误!argv“$HOME/.nvm/versions/node/v7.7.3/bin/node”“$HOME/.nvm/versions/node/v7.7.3/bin/npm”“安装”“json模式伪造者/json模式伪造者#129/head”
npm错误!节点v7.7.3
npm错误!npm v4.1.2
npm错误!代码128
npm错误!命令失败:git版本列表-n1 129/头
npm错误!致命:参数“129/head”不明确:未知修订或路径不在工作树中。
npm错误!使用“---”将路径与修订分开,如下所示:
npm错误吉特[…]-[…]'
npm错误!
npm错误!
npm错误!如果需要帮助,您可以在以下位置报告此错误:
npm错误!
npm错误!请在任何支持请求中包括以下文件:
npm错误$主页/项目/游乐场/npm-debug.log

$spirn添加json模式伪造者/json模式伪造者#pull/129/head
纱线添加v0.21.3
[1/4]
$ npm install json-schema-faker/json-schema-faker#129/head
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! git rev-list -n1 129/head: fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! git rev-list -n1 129/head: Use '--' to separate paths from revisions, like this:
npm ERR! git rev-list -n1 129/head: 'git <command> [<revision>...] -- [<file>...]'
npm ERR! git rev-list -n1 129/head: 
npm ERR! Darwin 15.6.0
npm ERR! argv "$HOME/.nvm/versions/node/v7.7.3/bin/node" "$HOME/.nvm/versions/node/v7.7.3/bin/npm" "install" "json-schema-faker/json-schema-faker#129/head"
npm ERR! node v7.7.3
npm ERR! npm  v4.1.2
npm ERR! code 128

npm ERR! Command failed: git rev-list -n1 129/head
npm ERR! fatal: ambiguous argument '129/head': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     $HOME/Projects/playground/npm-debug.log