- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
执行时
npm install -g @aws-amplify/cli
它导致
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Nashif Alam\AppData\Roaming\npm-cache\_logs\2020-04-20T17_44_57_963Z-debug.log
这是日志输出
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\Nashif Alam\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '@aws-amplify/cli'
1 verbose cli ]
2 info using npm@6.14.4
3 info using node@v12.16.2
4 verbose npm-session 48145273415ef01a
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 http fetch GET 304 https://registry.npmjs.org/@aws-amplify%2fcli 6012ms (from cache)
8 silly pacote tag manifest for @aws-amplify/cli@latest fetched in 6185ms
9 timing stage:loadCurrentTree Completed in 6274ms
//删除了日志的其余部分,因为它在这种情况下似乎没有用
916 silly resolveWithNewModule param-case@3.0.3 checking installable status
917 silly pacote version manifest for upper-case@2.0.1 fetched in 8ms
918 silly resolveWithNewModule upper-case@2.0.1 checking installable status
919 http fetch GET 200 https://registry.npmjs.org/@ardatan%2fgraphql-tools 1713ms
920 http fetch GET 200 https://registry.npmjs.org/@ardatan/graphql-tools/-/graphql-tools-4.1.0.tgz 5735ms
921 silly pacote version manifest for @ardatan/graphql-tools@4.1.0 fetched in 7453ms
922 silly resolveWithNewModule @ardatan/graphql-tools@4.1.0 checking installable status
923 silly pacote range manifest for dot-case@^3.0.3 fetched in 2ms
924 silly resolveWithNewModule dot-case@3.0.3 checking installable status
925 silly pacote version manifest for @graphql-toolkit/common@0.9.7 fetched in 5ms
926 silly resolveWithNewModule @graphql-toolkit/common@0.9.7 checking installable status
927 silly fetchPackageMetaData error for relay-compiler@8.0.0 Response timeout while trying to fetch https://registry.npmjs.org/relay-compiler (over 30000ms)
928 verbose stack RangeError: Maximum call stack size exceeded
928 verbose stack at RegExp.test (<anonymous>)
928 verbose stack at isDepOptional (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:428:45)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:437:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
928 verbose stack at failedDependency (C:\Users\Nashif Alam\AppData\Roaming\npm\node_modules\npm\lib\install\deps.js:453:9)
929 verbose cwd C:\Users\Nashif Alam
930 verbose Windows_NT 10.0.18363
931 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Nashif Alam\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "@aws-amplify/cli"
932 verbose node v12.16.2
933 verbose npm v6.14.4
934 error Maximum call stack size exceeded
935 verbose exit [ 1, true ]
npm 版本是 6.14.4 Node 版本为 v12.16.2
我试过安装node 10,还是一样的错误
此外,每次日志大多停留在 Response timeout while trying to fetch https://registry.npmjs.org/**Different link everytime**
最佳答案
使用以下命令对我有用
npm 缓存清理 --force
关于node.js - 放大 cli : npm ERR! 超出最大调用堆栈大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61329084/
在编程方面我是个菜鸟。我正在尝试了解 Node.js 和 MongoDB。 下面是我的代码,它将搜索数据库并按州(例如加利福尼亚州、夏威夷州、佛蒙特州等)和最高温度对其进行排序。 当我运行 app.j
我可能在这里遗漏了一些非常简单的东西: package main import ( "fmt" "strconv" "reflect" ) func main() {
我正在尝试运行 npm install bitgo命令但在终端上出现以下错误, npm ERR! code EMFILE npm ERR! syscall spawn git npm ERR! pat
我问了另一个与错误有关的问题。不确定我是否应该编辑该问题。 无论如何,对于下面的代码: app.use((err, req, res, next) => { res.status(err.stat
我正在使用 Promise,并且代码如下所示: function getStuff() { return fetchStuff().then(stuff => process(stuff)
这个问题已经有答案了: Why is `throw` invalid in an ES6 arrow function? (3 个回答) 已关闭 6 年前。 以下代码可以正常工作: pool.get
当我尝试向 redis 添加模块时,出现错误:(err) ERR 不支持的 CONFIG 参数:module-add 我已经通过以下方式安装了动态 redis :- $mkdir -p ~/repos
当我重新分片redis集群时,我遇到了一个问题。 redis集群信息和问题详情如下: obasa04:/usr/redis-4.0.2/src # redis-trib.rb info 10.239.
有什么理由在nodejs中写next(new Error(err))而不是next(err)吗? 非常感谢! 最佳答案 在没有任何上下文的情况下,我假设err已经是一个对象(通常在节点中),因此没有理
我正在尝试创建一个从 API 获取数据的全栈 Node 和 Vue 应用程序。我遇到了一个问题,我试图同时运行客户端和服务器,但代码遇到错误。如果我错误地构建了这个问题,请耐心等待,因为我对编码还很陌
我要更新 npm 最新版本,但显示此错误消息: G:\>npm i -g npm ERR! code ENOLOCAL npm ERR! Could not install from "" as it
为什么在执行 sudo npm install npm 时会出现这个奇怪的错误?我有时在尝试安装其他模块时也会得到它! 错误: > scrypt@6.0.3 preinstall /home/user
我使用 ctypes 围绕 libbgpdump 编写了一个 python 包装器,但是当 libbgpdump 调用“err()”时它会出现段错误。这是失败的 C 代码: if(count > MA
我想运行这个项目:https://github.com/adonis-china/adonis-adminify 当我运行npm install时,存在错误: > sqlite3@3.1.13 ins
我尝试在我的服务器上运行 npm install 并收到此错误。 > node-cron@2.0.3 postinstall /home/workspace/AgreementCancellation
我正在尝试在我的 Node 项目上创建一个错误处理程序,但我不明白一些事情。 对于抛出的错误,我可以从 2 种不同的方式中捕获: 进程.on() process.on('uncaughtExcepti
当我在我的“npm cache clean”中写入时,出现了这个错误“npm ERR!Windows_NT 6.3.9600 npm ERR!argv” C:\iaAC>npm cache clean
在我的 npm run 构建脚本执行后,我很难深入了解我收到的 npm 错误。终端报错如下: npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! vi
我试图在一个新的项目目录中运行 yo angular,但它在途中的某个地方给了我 ENOENT 错误。是的,我看过 this similar question ,但它的解决方案对我不起作用。 在运行
试图在 Ubuntu 18.04 x64 上运行它。它曾经在一天前正常工作,但它突然停止了。 npm i simple-youtube-api 我曾经能够安装它们但不是任何人,我得到这个: > buf
我是一名优秀的程序员,十分优秀!