The installation of the ionic environment was unsuccessful. is there any solution?

  node.js, question

I built the ionic environment, nodejs, Cordova,android environment and so on according to the online tutorials.

In this step of installing the ionic, it cannot be carried out. It feels like it’s the internet.
Someone told me that installing this depends on personality.
I’ve tried the internet at home and at work, but it didn’t work.

npm install -g ionic

Is there any good solution?

Try replacing the source with a domestic mirror image.

$ npm install -g ionic --registry=

Hope to help: ~)