gulp一直报错怎么解决呢

发布于 2022-09-04 21:25:08 字数 2405 浏览 14 评论 0

zhudeMacBook-Air:work zhu$ gulp
[22:58:29] Using gulpfile ~/Desktop/work/gulpfile.js
[22:58:29] Starting 'default'...
gulp.run() has been deprecated. Use task dependencies or gulp.watch task triggering instead.
[22:58:29] Starting 'sass-init'...
[22:58:30] Starting 'clean-css'...
[22:58:30] Starting 'concat-jquery'...
[22:58:30] Starting 'includefile-init'...
[22:58:30] Finished 'includefile-init' after 5.12 ms
[22:58:30] Starting 'connect'...
[22:58:30] Finished 'connect' after 81 ms
[22:58:30] Finished 'default' after 496 ms
events.js:160

  throw er; // Unhandled 'error' event
  ^

Error: listen EACCES 0.0.0.0:89

at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1246:19)
at listen (net.js:1295:10)
at Server.listen (net.js:1391:5)
at ConnectApp.run (/Users/zhu/Desktop/work/node_modules/gulp-connect/index.js:82:24)
at new ConnectApp (/Users/zhu/Desktop/work/node_modules/gulp-connect/index.js:50:10)
at Object.server (/Users/zhu/Desktop/work/node_modules/gulp-connect/index.js:219:11)
at Gulp.<anonymous> (/Users/zhu/Desktop/work/gulpfile.js:209:28)
at module.exports (/Users/zhu/Desktop/work/node_modules/orchestrator/lib/runTask.js:34:7)
at Gulp.Orchestrator._runTask (/Users/zhu/Desktop/work/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/zhu/Desktop/work/node_modules/orchestrator/index.js:214:10)
at /Users/zhu/Desktop/work/node_modules/orchestrator/index.js:279:18
at finish (/Users/zhu/Desktop/work/node_modules/orchestrator/lib/runTask.js:21:8)
at module.exports (/Users/zhu/Desktop/work/node_modules/orchestrator/lib/runTask.js:60:3)
at Gulp.Orchestrator._runTask (/Users/zhu/Desktop/work/node_modules/orchestrator/index.js:273:3)
at Gulp.Orchestrator._runStep (/Users/zhu/Desktop/work/node_modules/orchestrator/index.js:214:10)
at Gulp.Orchestrator.start (/Users/zhu/Desktop/work/node_modules/orchestrator/index.js:134:8)
at Gulp.run (/Users/zhu/Desktop/work/node_modules/gulp/index.js:22:14)
at Gulp.run (/Users/zhu/Desktop/work/node_modules/deprecated/index.js:9:17)
at Gulp.<anonymous> (/Users/zhu/Desktop/work/gulpfile.js:181:17)
at module.exports (/Users/zhu/Desktop/work/node_modules/orchestrator/lib/runTask.js:34:7)

zhudeMacBook-Air:work zhu$

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

哭泣的笑容 2022-09-11 21:25:08

解决啦,mac要加sudo命令的,当时不知道

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文