kubelive icon indicating copy to clipboard operation
kubelive copied to clipboard

ENOENT: no such file or directory on macOS

Open Dentrax opened this issue 4 years ago • 5 comments

Describe the bug Does not work because of yoga-layout-prebuilt, i think. Fresh installed npm.

To Reproduce Steps to reproduce the behavior:

  1. npm install -g kubelive
  2. kubelive get pods
  3. See error:
/usr/local/lib/node_modules/kubelive/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: ENOENT: no such file or directory, open
    at Object.openSync (fs.js:465:3)
    at Object.readFileSync (fs.js:368:35)
    at KubeConfig.loadFromFile (/usr/local/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config.js:69:32)
    at KubeConfig.loadFromDefault (/usr/local/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config.js:202:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/kubelive/src/kube/api.js:7:4)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
    at Module.require (internal/modules/cjs/loader.js:1090:19) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT'
}

Expected behavior Should work?

Screenshots Screen Shot 2020-07-14 at 09 37 18

npm --version: 6.14.6

Dentrax avatar Jul 14 '20 06:07 Dentrax

@Dentrax what node version, are you using? and is your kubeconfig in the right place?

ameerthehacker avatar Jul 14 '20 10:07 ameerthehacker

Yes, in the right place.

node --version: v14.5.0 echo $KUBECONFIG:: :/Users/furkan/.kube/config

Dentrax avatar Jul 14 '20 10:07 Dentrax

@Dentrax can you try with node v10

ameerthehacker avatar Jul 14 '20 13:07 ameerthehacker

Honestly, i don't like to deal with JS things like npm and node etc. But I think, I shouldn't downgrade the version, instead, it should support latest version of node, as you said in readme: node v10 or higher.

Dentrax avatar Jul 24 '20 13:07 Dentrax

@Dentrax sorry for your inconvenience but it is impossible to test in all node version above v10 and to know whether it is a version problem for sure you need to help me by trying it on node 10 but if it is up to you to do so.

thanks

ameerthehacker avatar Jul 24 '20 14:07 ameerthehacker