nodeJs的npm报错问题

1、 Failed at the phantomjs-prebuilt@2.1.14 install script 'node install.js'.  

  解决办法: npm install phantomjs-prebuilt@2.1.14--ignore-scripts

2、出现npm ERR! registry error parsing json。

  解决办法:npm config set registry http://registry.cnpmjs.org

3、NPM 安装cordova时警告:npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to

  解决办法:npm update minimatch