Node js 抛 events.js:160 throw er; // Unhandled 'error' event
来源:互联网 发布:木门下单软件 编辑:程序博客网 时间:2024/06/03 14:54
The project I worked on was built with gulp.
Recently I updated the node version to v6.3.1. Then something came wrong.
A task named 'html' throws an error. Here is the part of error code of it.
bogon:toClient work$ gulp html(node:2519) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.[10:26:10] Using gulpfile ~/Project/TIME_Cancer_Treatment_Centers_of_America(CTCA)/toClient/gulpfile.js[10:26:10] Starting 'html'...(node:2519) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.events.js:160 throw er; // Unhandled 'error' event ^Error: CSS parse error scripts/vendor.js: Unexpected input 1 |!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e="length"in t&&t.length,i=J.type(t);return"function"!==i&&!J.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||
And the code of task 'html':
var $ = require('gulp-load-plugins')();gulp.task('html', function() { var assets = $.useref.assets({searchPath: ['.tmp']}); return gulp.src('app/*.html') .pipe(assets) .pipe($.if('*.js', $.uglify())) .pipe($.if('*.css', $.csso())) .pipe(assets.restore()) .pipe($.useref()) .pipe($.if('*.html', $.minifyHtml({conditionals: true, loose: true}))) .pipe(gulp.dest('dist'));});
I googled a lot but I haven't found a proper answer suitable for me.
removing the node modules and doing a fresh install, resolved this issue for me.
rm -rf node_modules && npm cache clean && npm install
I'm running node v6.7.0
source: https://github.com/ember-cli/ember-cli/issues/3087#issuecomment-71327402
原文地址: https://stackoverflow.com/questions/38841204/events-js160-throw-er-unhandled-error-event
本文地址: http://blog.csdn.net/aerchi/article/details/73964859
阅读全文
0 0
- Node js 抛 events.js:160 throw er; // Unhandled 'error' event
- events.js:160 throw er; // Unhandled 'error' event ^ Error: write after end at Serv
- Node js 项目启动报错,错误码,events.js:141,throw er; //Unhandled 'error' event,解决办法
- Node js 项目启动报错,错误码,events.js:141,throw er; //Unhandled 'error' event,解决办法
- 错误码:events.js:141 throw er; // Unhandled ‘error’ event—解决办法
- throw er; // Unhandled 'error' event
- throw er; // Unhandled 'error' event
- throw er; // Unhandled 'error' event
- throw er; Unhandled 'error' event
- throw er; // Unhandled 'error' event
- throw er; // Unhandled 'error' event
- ExpressJS - throw er Unhandled error event
- events.js:141 throw er; 解决办法
- listen EADDRINUSE :::3000 且 throw er; // Unhandled 'error' event
- webpack 执行 npm run dev报错throw er; // Unhandled 'error' event
- Node.js Events模块
- Node.js Events模块
- Node.js Events
- TypeScript 学习笔记5:Custom Types
- elipse离线配置svn
- centos7 swoole安装笔记
- 将github的项目下载到本地的MyEclipse
- 慢慢慢·周末·懒起画峨眉
- Node js 抛 events.js:160 throw er; // Unhandled 'error' event
- 关于crontab和crond
- 访问者模式
- MODBUS TCP和MODBUS RTU的差别
- json前后端传输(ajax异步提交)
- 待补充
- Python数据分析常用手册——Numpy和Pandas
- ffmpeg 参数解析
- 多线程同步