Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during install - Cant find foundation-lib-spa-webpack.git #21

Open
Danielh21 opened this issue Jun 30, 2021 · 4 comments
Open

Error during install - Cant find foundation-lib-spa-webpack.git #21

Danielh21 opened this issue Jun 30, 2021 · 4 comments

Comments

@Danielh21
Copy link

Hi.

I'm getting this error during NPM Install and build, when running setup.cmd

This is the full error:

npm WARN prepare removing existing node_modules/ before installation
npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://[email protected]/episerver/foundation-lib-spa-webpack.git
npm ERR!
npm ERR! Host key verification failed.
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

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\DanielHollmann\AppData\Roaming\npm-cache\_logs\2021-06-30T07_44_09_314Z-debug.log
1
Run resetup.cmd to resetup solution

I'm noting that it can't find the remote repository. Anyway to fix this?
I have already cleared my known_hosts as descripted in this post:
https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository

@remkoj
Copy link
Collaborator

remkoj commented Jun 30, 2021

Hi,

Can you verify that you're running NPM 7 and the latest LTS from Node.JS? As there's a small change in the handling of git & github references between the NPM6 and NPM7, and the distributed package.json and package-lock.json are generated by NPM 7, this might be the cause of this error.

If you can't upgrade to NPM 7, let me know and I can provide you with the needed updates to the package.json to make it at least install with NPM 6, but there might some other dependency management issues.

https://docs.npmjs.com/try-the-latest-stable-version-of-npm

@rojait00
Copy link

My workaround was to go to my .ssh folder (C:\USers\XYZ.ssh) and open up the GIT Bash.

At first i entered ssh -T [email protected]
It asked if i would like to continue -> yes

Now the error was gone, but a new error appeared:
[email protected]: Permission denied (publickey)

To get rid of it i followed this steps:
https://docs.github.com/en/github/authenticating-to-github/troubleshooting-ssh/error-permission-denied-publickey

@MarkMcDonald
Copy link

This requires you to set up SSH keys in Github - just had to do it myself as normally just use HTTP for git cloning etc.
Some info here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh

The README could do with updating to reflect this step.

@MarkMcDonald
Copy link

To also add to this the SSH created need to have no passphrase as well for the set-up to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants