Failed to install hexo using Taobao image

  node.js, question

First to use official documents$ npm install -g hexo-cliThe installation of hexo has not responded to the timeout. After google chose to install it with Taobao image.

Install cnpm:

npm install -g cnpm --registry=

When npm is then installedcnpm install -g hexo-cliFailed with the following error message:

How to solve it?

Windows: right-click administrator mode to run CMD.
mac: sudo npm install -g hexo-cli –registry=