Hello,
Netlify is failing to deploy my website because of a package.json dependency that comes from a public repository on GitLab.
My package.json is the following:
{
"name": "mywebsite",
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/runtime": "7.0.0-beta.55",
"@fortawesome/fontawesome-free": "^5.8.1",
"axios": "^0.18.0",
"bulma": "^0.7.4",
"faker": "^4.1.0",
"history": "^4.9.0",
"lodash": "^4.17.11",
"moment": "^2.24.0",
"node-sass": "^4.11.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-jss": "^8.6.1",
"react-redux": "^7.0.2",
"react-router-dom": "^5.0.0",
"react-scripts": "2.1.8",
"redux": "^4.0.1",
"redux-thunk": "^2.3.0",
"shark": "git+ssh://git@gitlab.com/rewave/shark"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
and the error message looks like this:
12:12:01 PM: > Successfully installed Yarn 1.13.0! Please open another terminal where the `yarn` command will now be available.
12:12:01 PM: Installing NPM modules using Yarn version 1.13.0
12:12:02 PM: yarn install v1.13.0
12:12:02 PM: [1/4] Resolving packages...
12:12:02 PM: [2/4] Fetching packages...
12:12:21 PM: error Command failed.
12:12:21 PM: Exit code: 128
12:12:21 PM: Command: git
12:12:21 PM: Arguments: ls-remote --tags --heads ssh://git@gitlab.com/rewave/shark
12:12:21 PM: Directory: /opt/build/repo
12:12:21 PM: Output:
12:12:21 PM: Host key verification failed.
12:12:21 PM: fatal: Could not read from remote repository.
12:12:21 PM: Please make sure you have the correct access rights
12:12:21 PM: and the repository exists.
Any idea? It works in my local env.
Thanks!