UNABLE_TO_VERIFY_LEAF_SIGNATURE при установке пакета npm - PullRequest
1 голос
/ 21 января 2020

Я обновил npm несколько дней go. При попытке установить parcel-bundler я получаю следующую ошибку.

npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning UNABLE_TO_VERIFY_LEAF_SIGNATURE: request to https://registry.npmjs.org/parcel-bundler failed, reason: unable to verify the first certificate
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! errno UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! request to https://registry.npmjs.org/js-yaml failed, reason: unable to verify the first certificate

Я попытался установить для strict-ssl значение false. Я получаю следующую ошибку.

npm ERR! code E403
npm ERR! 403 403 npmjsorgcoachpage - GET https://registry.npmjs.org/parcel-bundler
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.
npm version 6.13.4
node version v12.14.1
...