我正在嘗試在中安裝nuclide包以開發react-native
。我不確定下面的錯誤是什麼原因。任何人都可以建議我如何解決這個問題。錯誤:nodejs中的證書鏈中的自簽名證書
在此先感謝
npm ERR! fetch failed https://registry.npmjs.org/asap/-/asap-2.0.5.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/boom/-/boom-2.10.1.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/async-to-generator/-/async-to-generator-1.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/connect/-/connect-3.5.0.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
npm ERR! fetch failed https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz
npm WARN retry will retry, error on last attempt: Error: self signed certificate in certificate chain
也許有人/東西(如代理 - 顯式或其他方式) MITM'ing你的流量? Registry.npmjs.org當前使用的證書應由GlobalSign擴展驗證頒發。嘗試在瀏覽器中訪問https://registry.npmjs.org並從那裏檢查證書頒發者。 – mscdex