win7_64,vue命令无法运行问题
问题
win7_64安装vue后, vue命令执行返回:
errno: -4054,
code: 'ENOSYS',
message: 'function not implemented',
syscall: 'uv_os_gethostname'
解决办法:
找到出错入口文件:
node_modules\@vue\cli\node_modules\@achrinza\node-ipc\entities\Defaults.js,
加上os.hostname=()=>"localhost"
> 然后vue命令就可用了
参考:
https://dev.to/napster/fix-vercel-error-a-system-error-occurred-uvosgethostname-returned-enosys-function-not-implemented-5da6