Modify the npmrc file in the npm installation directory to add an entry registry=http://registry.cnpmjs.org
$ npm config set registry http://registry.cnpmjs.org
This problem can be solved.
prefix=${APPDATA}\npm
registry=http://registry.cnpmjs.org