首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >RangeError:在Meteor中创建项目时超出了最大调用堆栈大小

RangeError:在Meteor中创建项目时超出了最大调用堆栈大小
EN

Stack Overflow用户
提问于 2018-07-14 01:07:08
回答 1查看 737关注 0票数 0

当我尝试在创建一个项目后使用meteor命令执行它时,我得到了以下错误:

C: \ Users \ c \ AppData \ Local \ .meteor \ packages \ meteor-tool \ 1.7.0_3 \ mt-os.windows.x86_64 \ dev_bundle \ lib \ node_modules \ meteor-promise \ promise_server.js: 218 

throw error; 
^
RangeError: Maximum call stack size exceeded

然后,当我使用npm start时,我得到了错误:

> basic-app @ start C: \ Users \ c \ Desktop \ basic-app
> meteor run

C: \ Users \ c \ AppData \ Local \ .meteor \ packages \ meteor-tool \ 1.7.0_3 
   \mt-os.windows.x86_64 \ dev_bundle \ lib \ node_modules \ meteor-promise \ 
    promise_server.js: 218
    throw error;
    ^
RangeError: Maximum call stack size exceeded
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! basic-app @ start: `meteor run` 
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the basic-app @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional 
logging output above.

 npm ERR! A complete log of this run can be found in:
 npm ERR! C: \ Users \ c \ AppData \ Roaming \ npm-cache \ _logs \ 2018-07- 
 13T17_14_43_857Z-debug.log

这是默认的package.json

 {                                                                                               
    "name": "basic-app",                                                                          
    "private": true,                                                                              
    "scripts": {                                                                                  
      "start": "meteor run",                                                                      
      "test": "meteor test --once --driver-package meteortesting:mocha",                          
      "test-app": "TEST_WATCH=1 meteor test --full-app --driver-package 
                   meteortesting:mocha",     
      "visualize": "meteor --production --extra-packages bundle-visualizer"                       
     },                                                                                            
    "dependencies": {                                                                             
      "@babel/runtime": "^7.0.0-beta.51",                                                         
      "meteor-node-stubs": "^0.4.1"                                                               
    },                                                                                            
   "meteor": {                                                                                   
     "mainModule": {                                                                             
       "client": "client/main.js",                                                               
       "server": "server/main.js"                                                                
      },                                                                                          
     "testModule": "tests/main.js"                                                               
    }                                                                                             
  }

如何修复这些错误?

EN

回答 1

Stack Overflow用户

发布于 2018-07-30 05:38:26

也遇到了同样的问题。在我的例子中,我在C:\Users\UserName\node_modules上有另一个node_modules文件夹,将这个文件夹重命名为node_modules_old,问题似乎得到了解决。

我认为.meteor C: \ Users \ c \ AppData \ Local \ .meteor \ packages \ meteor-tool \ 1.7.0_3 \ mt-os.windows.x86_64 \ dev_bundle \ lib \ node_modules中的node_modules文件夹和node_module文件夹C:\Users\UserName\node_modules冲突,更改名称似乎有帮助。

如果问题仍然存在,请检查以下问题:https://github.com/meteor/meteor/issues/7896 https://github.com/meteor/meteor/issues/9586

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51329879

复制
相关文章

相似问题

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