如何使用NPM v5安装Gulp v4?

时间:2017-06-01 10:00:56

标签: node.js github npm gulp gulp-4

我已经安装了新版本的npm,但现在当我尝试运行下一个命令时,依赖项无法安装:

npm i -S gulpjs/gulp#4.0

npm ERR! code ETARGET
npm ERR! notarget No matching version found for undefined@4.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

NPM版本:v5.0.1

是否有一种从github分支机构安装npm软件包的新方法?

相关问题(旧NPM版本):Depend on a branch or tag using a git URL in a package.json?

关于安装依赖项的NPM文档:npm install docs

1 个答案:

答案 0 :(得分:0)

这是v5.0.2中修复的错误

Related github issue