gpt4 book ai didi

node.js - Node 错误 npm ERR!在 Angular 项目中使用 npm install 时从未调用 cb()

转载 作者:行者123 更新时间:2023-12-04 19:29:21 25 4
gpt4 key购买 nike

当我从 git 克隆一个 Angular 11 项目并运行 npm install ,我收到以下错误:

npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR! /home/something/.npm/_logs/2021-06-26T17_17_38_979Z-debug.log
我在 Ubuntu 20.04.2 和 Node 14.17.1 和 npm 6.14.13 上运行。
到目前为止,我已经尝试再次卸载和安装 node 和 npm 并运行这些命令,但它们都不起作用: npm cache clean --force npm install --no-package-lock而且我克隆的项目中也没有node_modules和package-lock.json。所以删除它们也不起作用(因为它们不存在)。

最佳答案

试试这个

npx npmc@latest install

关于node.js - Node 错误 npm ERR!在 Angular 项目中使用 npm install 时从未调用 cb(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68144868/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com