angular - npm 错误! npm install (angular) 时超出了最大调用堆栈大小

标签 angular npm

我在运行 npm install 时得到了这个

npm WARN deprecated ts-simple-ast@12.4.0: NOTICE: ts-simple-ast has been renamed to ts-morph and version reset to 1.0.0. Switch at your leisure...
npm WARN deprecated circular-json@0.5.9: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
npm WARN deprecated nomnom@1.5.2: Package no longer supported. Contact support@npmjs.com for more info.
npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained
npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an
import issue introduced in 2.1.0
npm WARN deprecated uws@9.14.0: New code is available at github.com/uNetworking/uWebSockets.js
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated buildmail@4.0.1: This project is unmaintained
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\1-PC\AppData\Roaming\npm-cache\_logs\2019-02-22T21_56_49_385Z-debug.log

最佳答案

转到您的项目目录并删除 node_modules 文件夹,

rm -rf node_modules



然后清理你的缓存,

npm cache clean --f



最后重新安装依赖,

npm i

关于angular - npm 错误! npm install (angular) 时超出了最大调用堆栈大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54835831/

相关文章:

node.js - 找不到 grpc@1.10.1 和 node@10.9.0 的预构建二进制文件

node.js - Node JS - 运行 app.js 的自定义命令

Angular Cli 严格的 NPM 版本?

asp.net-core - Blazor:如何将 npm 依赖项包含到 Razor 类库中?

javascript - 将数据推送到另一个对象

html - 背景图片调整大小改变了android中的 View

Angular 2 Material Design 具有分层缩进的多选下拉菜单

angular - Util 模块中 util.isNullOrUndefined(object) 的替代方法是什么? Angular 7

html - 如何在angular2中基于ngIf条件反射(reflect)CSS

npm - Next.js 服务器运行后停止几秒钟 "npm run dev"