如何在gulp中添加'del'依赖项 [英] How to add 'del' dependency in gulp

查看:135
本文介绍了如何在gulp中添加'del'依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新的gulp,需要添加依赖项'del'。



我已经看到了这个删除依赖项,但是无法找到这个'del'的npm安装。
如果直接尝试访问



var del = require('del');



引发错误无法找到模块。



任何人都可以帮忙...

$ b $

  npm install  - -save-dev del 

https://www.npmjs.org/package/del


New to gulp, need to add the dependency 'del'.

I have seen this delete dependency but unable to found the npm installation for this 'del'. If directly tried to access

var del = require('del');

It throws error unable to find the module.

Can anyone help out...

解决方案

Have you installed it?

npm install --save-dev del

https://www.npmjs.org/package/del

这篇关于如何在gulp中添加'del'依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆