Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,715
Community Members
 
Community Events
176
Community Groups

Node installation not working in pipeline

This is the YML file

---
image: node:14.15-alpine3.13
clone:
lfs: true

pipelines:
custom:
publish-staging:
- step:
name: Publish staging channel
deployment: staging
script:
- apk add --no-cache bash git openssh
- unset NPM_CONFIG_USER
- npm i -g expo-cli@4.8.1
- npm ci

This is the specific package that's returning the error

"react-native-push-notification-popup": "github:toxox/react-native-push-notification-popup"

 

Here is the error log from the pipeline

npm ERR! Error while executing:

npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/toxox/react-native-push-notification-popup.git

npm ERR!

npm ERR! Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.

npm ERR! git@github.com: 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

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2022-05-12T06_07_02_222Z-debug.log

 

This used to run before I changes some scripts. But those scripts have nothing to do with npm/git configurations. To be precise I removed the script below.

expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD

1 answer

1 accepted

0 votes
Answer accepted

Hi @Lalit Thapa,

The following line shows that there is an attempt to run the git ls-remote command in a repo via SSH

npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/toxox/react-native-push-notification-popup.git

Please note that the URL of the repo is an SSH one, and it looks like GitHub does not allow anonymous access via SSH (Bitbucket doesn't allow that either).

Are you specifying this dependency in the package.json file or another configuration file in your repo?
If so, the easiest way to solve this issue would be to check where this SSH URL is specified, and change it to an HTTPS one:

https://github.com/toxox/react-native-push-notification-popup.git

Kind regards,
Theodora

Yup, I changed ssh to https and it's working now.

Thanks for pointing that out @Theodora Boudale 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events