promise server error when creating new meteor project

北战南征 提交于 2020-01-15 10:43:06

问题


I'm getting the following error when I try and create a new meteor project:

C:\Users\joshm\AppData\Local\.meteor\packages\meteor-tool\1.4.2_1\mt-os.windows.x86_32\dev_bundle\lib\node_modules\meteor-promise\promise_server.js:190
  throw error;
  ^

SyntaxError: Unexpected token

this is a new problem and as a bit of backstory of how I got to this point:

1) yesterday my project was working perfectly, however I realised that not all of my packages were up to date. It appeared if some had dependancies on others and so couldn't update any further, I removed most of them to see if I could update the specific one I wanted to update

2) now with many of the packages uninstalled I tried to update and I got the same error as I'm getting above. When trying to run the project I also get the same error. I put the packages back in where they were before in hopes that it will fix the problem

3) adding the packages back in doesn't fix the problem and I still get the same error when trying to run the project. I copied all of my document files into a new folder and tried to make a new project to get a clean start

4) when trying to create the new project I get the same error. However it appears as if all of the standard Meteor files are created - the clicking counter. I attempt to run the new clicking counter and once again get the same error, and I also got a firewall alert which I've never had before when trying to run a meteor project.


回答1:


You can try deleting .meteor from your home directory, and re-install meteor.




回答2:


for me deleting local meteor installtion on C:\Users\joshm\AppData\Local.meteor\ wasn't enough.

I also had to delete .meteor/local folder inside my project folder



来源:https://stackoverflow.com/questions/40634403/promise-server-error-when-creating-new-meteor-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!