【问题标题】:npm install error: what does this mean exactly? How to fix it?npm install 错误:这到底是什么意思?如何解决?
【发布时间】:2019-07-24 20:52:14
【问题描述】:

使用 npm install 时出现以下错误:我应该怎么做?我应该担心吗?如何联系作者?

17723 error code E404
17724 error 404 Not Found - GET https://registry.npmjs.org/@babel/plugin-transform-named-capturing-types-regex/-/plugin-transform-named-capturing-types-regex-7.4.2.tgz
17725 error 404
17726 error 404 '@babel/plugin-transform-named-capturing-types-regex@7.4.2' is not in the npm registry.
17727 error 404 You should bug the author to publish it (or use the name yourself!)
17728 error 404 It was specified as a dependency of 'front_end'
17729 error 404 Note that you can also install from a
17730 error 404 tarball, folder, http url, or git url.
17731 verbose exit [ 1, true ]

【问题讨论】:

    标签: reactjs npm dependencies


    【解决方案1】:

    404 表示未找到。 IE。没有以该名称发布包。

    你是说这个吗?:

    npm install --save-dev @babel/plugin-transform-named-capturing-groups-regex
    

    【讨论】:

    • 我只是使用“npm install”来安装我项目的所有依赖项,但我以前从未遇到过这个错误。
    • 也许它被重命名了——它可以和上面的包一起工作吗?
    • 我不确定,我认为它与自动安装的 react-create-app 有关。
    • 好的,但是当你安装这个时它可以工作吗?如果是,请标记为正确..
    • 我没有使用你的命令,但是在执行 npm audit fix、npm update 和最后 npm install 之后问题就消失了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-07-15
    • 2021-06-25
    • 2013-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-09
    相关资源
    最近更新 更多