我在运行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
答案 0 :(得分:0)
转到您的项目目录,然后删除 node_modules 文件夹,
rm -rf node_modules
然后清理缓存,
npm缓存清理--f
最后重新安装依赖项,
npm我
答案 1 :(得分:0)
我使用Docker构建了一个react项目,并遇到了类似的错误(尽管该错误未在本地重复发生)。由于递归调用的嵌套限制而返回此错误。
作为一种解决方法,以下命令对我有帮助,这增加了递归调用的最大数量:
上找到了此解决方案node --stack-size = 2000 /local/lib/node_modules/npm/bin/npm-cli.js安装
答案 2 :(得分:0)
运行create-react-app
命令时遇到了这个问题。尽管命令不同,但是在触发安装各种依赖项时,create react app支架也会运行npm i
命令。
.npmrc
中的全局C:/<name of the root folder>/nvm/v12.18.3/node_modules/npm
文件npm cache clean --force
在项目文件夹之外npm i
。代码编辑器:在管理员模式下运行的Visual Studio代码。
主机操作系统:Microsoft Windows 10。
使用NVM在Windows 10中运行Node.js。