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,295,689
Community Members
 
Community Events
165
Community Groups

nvm is not compatible with the npm config "prefix" option: currently set to "/root/.npm-global" Run

Hi Team,

I have Pipeline configure for SFDX Project.

Problem 1 :

Below are the commands for Installing Node and Setting the Path :


curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh
- nvm install v10
- nvm --version
- mkdir ~/.npm-global
- npm config set prefix '~/.npm-global'
- export PATH=~/.npm-global/bin:$PATH
- NPM_CONFIG_PREFIX=~/.npm-global
#- source ~/.profile
- npm config set user 0
- npm config set unsafe-perm true
- npm install sfdx-cli --global
- node -v
- npm -v


Error -
nvm is not compatible with the npm config "prefix" option: currently set to "/root/.npm-global"
Run `nvm use --delete-prefix v8.9.4 --silent` to unset it.


Problem 2 - I have .sh file in my project which I am running via Pipeline, while running it gives an error saying
Error :
+ ./dep.sh $STARTCOMMIT
bash: ./dep.sh: Permission denied

 

1 comment

@midasTouchParas  hi. Thanks for your question. Maybe you should use node docker image instead of installing manually?

Regards, Igor.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,170 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you