如何解决吞咽通知程序类型错误
在本地运行新的 gulp 4.0.2 版本。其他一切似乎都有效(脚本和 css 编译),但抛出以下错误:
gulp-notify: [Error in notifier] TypeError in plugin "gulp-notify" Message: Cannot read property 'success' of undefined
尝试运行:
npm rm --save-dev gulp-notify
然后 npm install --save-dev gulp-notify
package.json
{
"name": "","version": "1.0.0","description": "","main": "gulpfile.js","scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},"author": "","license": "ISC","devDependencies": {
"autoprefixer": "^6.3.3","gulp": "^4.0.2","gulp-changed": "^1.2.1","gulp-concat": "^2.6.0","gulp-cssnano": "^1.1.0","gulp-error-notifier": "^1.1.0","gulp-include": "^2.4.1","gulp-inline-style": "^0.1.1","gulp-jshint": "^2.1.0","gulp-livereload": "^4.0.2","gulp-minify-css": "^1.2.0","gulp-notify": "^3.2.0","gulp-plumber": "^1.2.1","gulp-postcss": "^6.1.0","gulp-replace": "^0.6.1","gulp-sass": "^4.1.0","gulp-sourcemaps": "^1.12.1","gulp-strip-debug": "^1.0.2","gulp-uglify": "^1.2.0","gulp-watch": "^4.2.4","jshint": "^2.12.0","jshint-stylish": "^2.1.0","map-stream": "0.0.6"
}
}
非常感谢任何帮助。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。