zoukankan      html  css  js  c++  java
  • NPM ERR! 403 403 Forbidden 问题处理

    NPM 发布包提示403错误

    npm ERR! code E403
    npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/***** - Forbidden
    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.

    经过排查和处理共发现2个问题

    一.  package.json 中的名字与现有的仓库冲突导致。

    可通过访问错误日志中的URL:https://registry.npmjs.org/*****  测试是否该链接里存在了已经发发布的仓库。如果反回如图所示的包信息,则该名称真实有使用;

    UntitledImage

    如果反馈 Not found,其实名称并不重复。需要考虑其他情况了。

    UntitledImage

    二、正在发布的NPM账户如果是新注册的亲们需要注意了。刚刚注册的账户不能直接发布包,去看看你的邮箱中是不是收到了一封验证的邮件。验证过后才能发布包。

  • 相关阅读:
    605
    603
    509
    7-5
    6-5
    5-6
    5-3
    5-4
    5-5
    4-12
  • 原文地址:https://www.cnblogs.com/moonwebmast/p/14924479.html
Copyright © 2011-2022 走看看