无法在节点8.12.0上安装Gulp

时间:2018-09-20 18:35:59

标签: node.js gulp

当我尝试使用sudo npm install --save-dev gulp命令时,它返回此错误:

npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN gus@1.0.0 No description
npm WARN gus@1.0.0 No repository field.

我已经重新安装了gulp(多次)和node(&npm),但仍然无法正常工作。 我该怎么办? (我使用的是macOS 10.13.6,并且通过自制程序安装了节点)

1 个答案:

答案 0 :(得分:2)

为什么要尝试使用--save-dev进行安装? 全局安装Gulp应该使用--global

您是否已查看其安装指南? https://gulpjs.org/getting-started.html