Я работаю над проектом, который содержит в своем package.json следующее:
package.json
"devDependencies": { "gulp": "git+https://github.com/gulpjs/gulp.git#4.0" }
Однако после установки NPM это приводит к ошибке pathspec did not match any file(s) known to git:
pathspec did not match any file(s) known to git
npm ERR! code 1 npm ERR! Command failed: git checkout 4.0 npm ERR! error: pathspec '4.0' did not match any file(s) known to git
Я бы подумал, что нам нужна версия 4.0.0 Gulp здесь: https://github.com/gulpjs/gulp/releases/tag/v4.0.0. Что будет правильным commit-ish (после http://npm.github.io/using-pkgs-docs/package-json/types-of-dependencies.html) указать, чтобы получить эту версию? (Я нахожусь на версии 6.9.0 NPM).
commit-ish