您好我正在尝试安装gulp并且它无法正常工作,只是返回此消息。
$ npm install gulp --save-dev
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: graceful-fs v3.0.0 and before will fail o n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible . Use 'npm ls graceful-fs' to find it in the tree.
npm WARN abc@1.0.0 No description
npm WARN abc@1.0.0 No repository field.
答案 0 :(得分:1)
这些只是可以忽略的警告。要检查模块是否已正确安装,请尝试以下命令检查已安装的版本:
npm list | grep gulp
它将列出上一个命令安装的版本。如果您没有获得任何版本,请检查您使用的npm版本。请更新npm的版本,然后重试。看起来你的npm版本已经过时了。
npm install -g npm