Oh, really?
In 1998, Indian politicians and generals publicly claimed that India went to nuke because of China, not Pakistan, not US, but China, even though Chinese has never threatened India with nuke in any occasion.
The Chinese should well know the difference between what a nation "says" and what it really "means". Saying "we feel threatened by a nuclear power next door" is just better for PR than "we have ambitions to be a great power. Remember the nuclear program was started right after China attacked India in 1962 and then developed a nuclear bomb. So for the time, it would also make sense defensively, to keep things even.
Since 1990s, whenever a new Indian missile entered in service, Indian medias and Indian members in this forum happily discussed how far this new weapon can reach within China.
Range on a missile is linked with technological prowess and global great power status. Again it is easier to say "we want to match China", as this is less likely to alarm the west. But everyone from Pakistan to India to China, knows the real purpose is just national status and prestige. We could easily put nukes on a sub in a few years, if that was our primary real concern.
Since 2000s, every single weapons inducted by India forces would bring India's enthusiasm about its potential use against China.
This is to appease the west a bit. America wishes for us to openly ally with Japan and the USA against China. We'd rather just give them some verbal bs from time to time, than actually take real actions against China. Otherwise they will be on our backs. Americans are always pushing their "with us or against us" mentality.
Well, my friend, the matter of fact is: most of Indians in this forum (including you) are seeing China as an enemy.
Rivals more than enemies. Currently the political interests of China and India are greatly opposed. India will gain more allying with the USA over China, as the USA is a far more powerful nation, leading an extremely powerful coalition currently. China also is the power next door. It is much easier to tolerate a great power USA 1000's of miles away. China also strongly supports Pakistan, some could argue without China, Pakistan would be nothing.
There are some very good reasons to be opposed to China as an Indian:
1. Gave Pakistan nuclear technology or at least greatly aided them, this allowed them to commit decades of terrorism against us, using the nuclear umbrella.
2. Pretty much provides Pakistan with most of its weapons and joint production projects
3. Invaded us in 1962, sure we had the forward policy but it was nothing compared to a full blown war/invasion.
4. China plays a lot more in South Asia, than India does in South East Asia. India also started trying to get involved in East Asia, much later, after China had provoked it in South Asia.
Despite all of this, we don't really see the Chinese as "enemies", in that we don't really dislike them as a people. In fact there is a lot to appreciate and admire about China. But our current geopolitics line up in such a way that we are currently rivals. Ideally it would be good to limit the rivalry to only certain fields and cooperate in things like business, medicine, space etc.. where there is no conflict of interests.