最新消息:服务器现已从linode换到fzhost.net,且主题已从retina 0.2换为大前端D8

【已解决】Mac中Webpack出错:node FSEvents.framework FSEventStreamStart ERROR FSEvents_connect ipc send invalid destination port

Mac crifan 23浏览 0评论

Mac中的ReactJS项目,之前一直可以正常的通过:

npm run dev

去用Webpack打包,然后调试。

此处由于系统很卡所以强制杀掉window窗口进程后,相当于重启Mac了。

然后再去开发时,打包最后出错:

➜  ucowsapp git:(master) ✗ npm run dev
> ucows-app@6.0.0 dev /Users/crifan/dev/dev_root/daryun/Projects/xxx/ucowsapp
> cross-env NODE_ENV=development webpack-dev-server –inline –hot –progress
10% building modules 1/1 modules 0 active
Project is running at http://localhost:8080/
webpack output is served from /uapp/
Content not from webpack is served from ./src
404s will fallback to /index.html
18% building modules 70/302 modules 232 active …de_modules/sockjs-client/lib/entry.jsUnable to open browser. If you are running in a headless environment, please do not use the open flag.
Hash: a9e61d3535c94fddbc05
Version: webpack 2.6.1
Time: 22074ms
        Asset       Size  Chunks                    Chunk Names
    bundle.js      12 MB       0  [emitted]  [big]  main
   index.html     1.1 kB          [emitted]
manifest.json  428 bytes          [emitted]
  favicon.ico    15.1 kB          [emitted]
chunk    {0} bundle.js (main) 4.5 MB [entry] [rendered]
    [5] ./~/preact/dist/preact.js 20.4 kB {0} [built]
  [360] ./src/index.js 1 kB {0} [built]
  [361] ./~/babel-polyfill/lib/index.js 833 bytes {0} [built]
  [362] (webpack)-dev-server/client?http://localhost:8080 5.78 kB {0} [built]
  [363] (webpack)/hot/dev-server.js 1.57 kB {0} [built]
  [428] ./src/style/index.less 1.38 kB {0} [built]
  [432] ./~/core-js/fn/regexp/escape.js 107 bytes {0} [built]
  [612] ./~/core-js/shim.js 7.38 kB {0} [built]
  [873] ./~/isomorphic-fetch/fetch-npm-browserify.js 233 bytes {0} [built]
  [899] ./~/regenerator-runtime/runtime.js 24.4 kB {0} [built]
  [927] ./~/strip-ansi/index.js 161 bytes {0} [built]
  [932] ./~/url/url.js 23.3 kB {0} [built]
  [935] (webpack)-dev-server/client/overlay.js 3.73 kB {0} [built]
  [936] (webpack)-dev-server/client/socket.js 897 bytes {0} [built]
  [993] multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server babel-polyfill ./index.js 64 bytes {0} [built]
     + 979 hidden modules
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 543 kB [entry] [rendered]
        [0] ./~/lodash/lodash.js 540 kB {0} [built]
        [1] ./~/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.9 kB {0} [built]
        [2] (webpack)/buildin/global.js 509 bytes {0} [built]
        [3] (webpack)/buildin/module.js 517 bytes {0} [built]
webpack: Compiled successfully.
2017-07-15 10:32 node[77926] (FSEvents.framework) FSEventStreamStart: ERROR: FSEvents_connect() => (ipc/send) invalid destination port (268435459)

node FSEvents.framework  FSEventStreamStart  ERROR  FSEvents_connect() => (ipc/send) invalid destination port

Very hard failure with watch on OS X · Issue #1743 · webpack/webpack

“I met the problem, it seems a mac OS’s bug, after I reboot my mac, it disappear.

I also met this problem on the iterm, my solution is to put the iterm closed to restart again, to solve”

Running webpack in watch mode with a large symlinked module causes a hard FSEvents failure when using contexts · Issue #2356 · webpack/webpack

此处,重启一下iTerm试试

然后即可正常了:

【总结】

当偶尔出现:

node[77926] (FSEvents.framework) FSEventStreamStart: ERROR: FSEvents_connect() => (ipc/send) invalid destination port (268435459)

时,重启一下(此处当iTerm)终端,即可。

还是不行的话,重启Mac,即可。

转载请注明:在路上 » 【已解决】Mac中Webpack出错:node FSEvents.framework FSEventStreamStart ERROR FSEvents_connect ipc send invalid destination port

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
57 queries in 0.516 seconds, using 12.79MB memory