我正在尝试在React App中使用JSON Server.但是,我不断收到以下错误.
events.js:167
throw er; // Unhandled 'error' event
^
Emitted 'error' event at:
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1498:12)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:50:17)
Run Code Online (Sandbox Code Playgroud)
我已将npm和node升级到最新版本.我用killall节点和sudo killall -9节点杀死了所有进程
可能导致问题的任何想法?
我工作的项目是用gulp构建的.
最近我将节点版本更新到v6.3.1.然后出了点问题.
名为"html"的任务会引发错误.这是它的错误代码的一部分.
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 …Run Code Online (Sandbox Code Playgroud)