Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

composer network upgrade not working when there is not internet connection

In my production environment, there is no INTERNET connection. I want to know how I will upgrade a business network using "composer network upgrade" command. I am getting getting following error while running "composer network upgrade". enter image description here

Same command successfully run, when machine is having Internet connection. Please help me out, how to configure composer to work in offline mode.

like image 875
Firoz Ansari Avatar asked Nov 21 '25 04:11

Firoz Ansari


1 Answers

(It looks like you are using v0.18.2 or v0.19 of composer and I assume you have Fabeic 1.1 GA)

When you run a composer network upgrade or composer network start Fabric tries to build a new chaincode Container which includes npm install commands, and the error you are seeing looks like an npm install failure.

There are other Answers on Stack Overflow that explain how to use an npmrc file with Composer to get around proxy problems, but if your machine is really isolated you may need to use something like Verdaccio to create a private npm repository.

You will see more details of your error if you look in the Log of the Peer container.

like image 112
R Thatcher Avatar answered Nov 23 '25 02:11

R Thatcher



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!