Hey folks,
npm install -g cypress
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/cypress-io/request.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-03-17T09_42_31_708Z-debug.log
Same problem with nxp cypress ...


Seems he doesn't resolve ssh://[email protected]/cypress-io/request.git.
npm install -g cypress install successfully
run npm install -g cypress
cypress@latest
Thanks in advance for your help & don't hesitate if you need more info/tests!
Continue the good work!
Cheers
Ok seems a docker problem. Latest image of node:12-slim doesn't include git anymore (and wget, ...).
RUN apt-get update && apt-get install -y gnupg2 ca-certificates wget git
&
RUN npm install -g --unsafe-perm cypress
Seems to fix this :ok_hand:
Sorry fo the noise, but if this can help other!
Hi @Nightbr,
Are you installing thru the docker image?
Yes, it was on a gitlab-ci.yml to build a docker image.
thanks @Nightbr , this _workaround_ did the trick for my Dockerfile. However, wish we didn't need to run those installs...my build is _that_ much slower now. 馃槵
But, git commands based on SSH require authentication, isn't it?
So ssh://[email protected]/cypress-io/request.git will always refuse to clone if your are not a member of the project.
It should be based on an https url.
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/cypress-io/request.git
npm ERR!
npm ERR! Warning: Permanently added 'github.com,140.82.112.3' (RSA) to the list of known hosts.
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
But, git commands based on SSH require authentication, isn't it?
So ssh://[email protected]/cypress-io/request.git will always refuse to clone if your are not a member of the project.
It should be based on an https url.npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/cypress-io/request.git npm ERR! npm ERR! Warning: Permanently added 'github.com,140.82.112.3' (RSA) to the list of known hosts. npm ERR! Permission denied (publickey). npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128
install is now also failing on my win-machine which does not have port 22 open
Most helpful comment
Ok seems a docker problem. Latest image of
node:12-slimdoesn't include git anymore (and wget, ...).RUN apt-get update && apt-get install -y gnupg2 ca-certificates wget git&
RUN npm install -g --unsafe-perm cypressSeems to fix this :ok_hand:
Sorry fo the noise, but if this can help other!