取消npm的https认证:
npm set strict-ssl false
转自:npm install 时报错 ‘self signed certificate in certificate chain’