win7_64运行yarn dev 命令后
errno: -4054,
code: 'ENOSYS',
message: 'function not implemented',
syscall: 'uv_os_gethostname'
node:os:68
throw new ERR_SYSTEM_ERROR(ctx);
s
systenError IERR SYSTE ERROR : A system error occurred: uy os gethostname returned ENOSY5 (function not implementedat new Defaults (D: \codelVSCodeProjects lyuxp yuxp-web node modules node-ipc entities Defaults. js:26:20)at new Parser (D: \code(VSCodeProjects yuxp yuxp-web\node modules node-ipclentities (EventParser.js:8:14)at Object.<anonymous> (D: code VCodeProjects yuxp yuxp-webinode modules node-ipc idaolclient. js:15:19)at Module compile (node:internal/modules/cjs/loader:1165:14)at Object.Module. extensions..js (node:internal/modules/cjs/loader:1219:10)at Module.load (node:internal/modules/cis/loader:1043:32)at Function.Module. load (node:internal/modules/cjs/loader:878:12)at Module.require (node:internal/modules/cis/loader:1067:19)at require (node:internal/modules/cjs/helpers:103:18)at 0bject.<anonymous>(D: codeVsCodeProjects yuxp yuxp-web node modules node-ipc services Ipc.js:4:14) !code:ERR SYSTEM ERROR
info:
errno: -4054code:"ENOSYSmessage: "function not implemented!
syscal1:"uv os gethostname '
errno: [Getter/Setter].syscall: Getter/Setter
error Command failed with exit code 1
解决办法:
找到出错入口文件:
node_modules\@achrinza\node-ipc\entities\Defaults.js
,
具体的位置根据报错信息而定
加上os.hostname=()=>"localhost"
然后yarn dev
命令就可用了
yarn dev