netlify 部署在“安装依赖项”阶段失败

问题描述 投票:0回答:1

我使用来自 github 的自动部署

从昨天开始,部署在“安装依赖项”阶段失败 日志显示如下: ....

8:52:12 PM: npm WARN     react-reconciler@"^0.20.4" from [email protected]
8:52:12 PM: npm WARN     node_modules/react-zdog
8:52:13 PM: npm ERR! code E404
8:52:13 PM: npm ERR! 404 Not Found - GET https://registry.npmjs.org/babel-preset-active-node-syntax/-/babel-preset-active-node-syntax-1.0.1.tgz - Not found
8:52:13 PM: npm ERR! 404
8:52:13 PM: npm ERR! 404  'babel-preset-active-node-syntax@https://registry.npmjs.org/babel-preset-active-node-syntax/-/babel-preset-active-node-syntax-1.0.1.tgz' is not in this registry.
8:52:13 PM: Failed during stage 'Install dependencies': dependency_installation script returned non-zero exit code: 1
8:52:13 PM: npm ERR! 404
8:52:13 PM: npm ERR! 404 Note that you can also install from a
8:52:13 PM: npm ERR! 404 tarball, folder, http url, or git url.
8:52:13 PM: npm ERR! A complete log of this run can be found in:
8:52:13 PM: npm ERR!     /opt/buildhome/.npm/_logs/2023-06-02T18_52_10_286Z-debug-0.log
8:52:13 PM: Error during npm install
8:52:13 PM: Build was terminated: dependency_installation script returned non-zero exit code: 1
8:52:13 PM: Failing build: Failed to install dependencies

我不知道该怎么做才能让它再次工作。

错误图像: https://i.imgur.com/V3U4fvb.png https://i.imgur.com/0rmhIAQ.png

deployment build netlify
1个回答
0
投票

我认为你应该检查你的安装命令。如果您有像“npm install packageName”这样的命令,那么它不会产生任何问题。但如果你有像 npm install --legacy-peer-deps 或 npm install --force 这样的命令,那么它肯定会产生问题。仔细检查这些。希望您的问题能够得到解决。

© www.soinside.com 2019 - 2024. All rights reserved.