Reprint: http://bbs.phonegap100.com/thread-2622-1-1.html
Image use Method (three ways any one can solve the problem, we recommend the use of a third, the configuration is dead, the next time the configuration is still in):
1. Through the config command
NPM Config Set Registry https://registry.npm.taobao.org
NPM Info underscore (if configured correctly this command will have string response)
2. Command line designation
NPM--registry https://registry.npm.taobao.org Info underscore
3. Edit ~/.NPMRC Add the following:
Registry = https://registry.npm.taobao.org
4. Using CNPM (strongly recommended)
Installing CNPM
NPM install-g cnpm--registry=https://registry.npm.taobao.org
All future NPM can be replaced with CNPM, such as: cnpm install ionic
Search Image: Https://npm.taobao.org
To create or use an image, refer to: https://github.com/cnpm/cnpmjs.org
NPM Command Ionic installation failed Cordova installation failed workaround