吞噬服务器抛出错误

我正在尝试运行gulp服务来启动之前工作的活动负载。 更新节点和npm后,我得到以下内容:

$ gulp serve module.js:515 throw err; ^ Error: Cannot find module 'internal/util/types' at Function.Module._resolveFilename (module.js:513:15) at Function.Module._load (module.js:463:25) at Module.require (module.js:556:17) at require (internal/module.js:11:18) at evalmachine.<anonymous>:31:26 at Object.<anonymous> (c:\Development\Template\studio_billing\node_modules\gulp\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:11: 1) at Module._compile (module.js:612:30) at Object.Module._extensions..js (module.js:623:10) at Module.load (module.js:531:32) at tryModuleLoad (module.js:494:12) 

这是我的gulpfile:

 var gulp = require('gulp'); var browserSync = require('browser-sync').create(); var reload = browserSync.reload; // Save a reference to the `reload` method // Watch scss AND html files, doing different things with each. gulp.task('serve', function () { // Serve files from the root of this project browserSync.init({ server: { baseDir: "./" } }); gulp.watch("*.html").on("change", browserSync.reload); gulp.watch("assets/css/*.css").on("change", browserSync.reload); gulp.watch("assets/js/*.js").on("change", browserSync.reload); }); 

我正在运行节点8.8.1和NPM 5.2.0。 我诚实地只是寻找一些东西来看我正在处理的文件的变化,并刷新浏览器。 这个解决scheme使用起来效果很好,但是更新NODE和NPM似乎破坏了它。 任何types的解决scheme将是真棒!

在更新之前,所有东西都可以正常工作。 我更新了NPM和Node,因为Laravel项目位于不同的文件夹中。