首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >节点错误npm错误!在Angular项目中使用npm install时,从未调用过cb()

节点错误npm错误!在Angular项目中使用npm install时,从未调用过cb()
EN

Stack Overflow用户
提问于 2021-06-27 01:39:07
回答 1查看 39关注 0票数 0

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

代码语言:javascript
运行
复制
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和节点14.17.1和npm 6.14.13上运行。

到目前为止,我已经再次尝试卸载和安装node和npm,并运行以下命令,但都不起作用:

npm cache clean --force

npm install --no-package-lock

在我克隆的项目中也没有node_modules和package-lock.json。所以删除它们也不起作用(因为它们不存在)。

EN

回答 1

Stack Overflow用户

发布于 2021-06-27 01:46:40

试试这个

代码语言:javascript
运行
复制
npx npmc@latest install
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68144868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档