That is why it is important to settle the border dispute with Pakistan. Because the same formula that will settle the dispute with Pakistan will also settle the long border dispute with China, the longest in the world.
The India-Pakistan border and the China-India border are unnecessarily militarized. Both need to be turned into trade membranes.
There is a region in Nepal called Karmali. It is right by Tibet in the west of Nepal. Karnali, about 500 years ago, used to be a prosperous empire, big enough to be called a civilization. Today Karnali is destitute. It has unimaginable poverty. It is because Karnali is like a house with all its windows closed. China has sealed the border with Tibet. That hampers trade or rather suffocates it.
Peace with Pakistan is important because peace with China is also important. Trade solves many problems. Peace is the greatest dividend of trade. Prosperity is secondary, but not minor.