ubuntu上的流星错误。退出代码:1 =>您的应用程序崩溃了。等待文件更改

时间:2017-11-06 21:25:42

标签: javascript ubuntu meteor

我是Meteor的新手,我刚刚在我的ubuntu上安装了meteor。在那之前一切都很好。但之后,每当我想创建我的第一个流星应用程序时,我就遇到了这个问题

W20171106-22:15:32.531(1)? (STDERR) /home/shahin/firstApp/.meteor/local

/build/programs/server/boot.js:467
W20171106-22:15:32.532(1)? (STDERR) }).run();
W20171106-22:15:32.532(1)? (STDERR)    ^
W20171106-22:15:32.533(1)? (STDERR) 
W20171106-22:15:32.533(1)? (STDERR) Error: The babel-runtime npm package could not be found in your node_modules 
W20171106-22:15:32.533(1)? (STDERR) directory. Please run the following command to install it:
W20171106-22:15:32.534(1)? (STDERR) 
W20171106-22:15:32.534(1)? (STDERR)   meteor npm install --save babel-runtime
W20171106-22:15:32.534(1)? (STDERR) 
W20171106-22:15:32.534(1)? (STDERR)     at babel-runtime.js (packages/babel-runtime.js:36:9)
W20171106-22:15:32.535(1)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20171106-22:15:32.535(1)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20171106-22:15:32.535(1)? (STDERR)     at packages/babel-runtime.js:155:15
W20171106-22:15:32.535(1)? (STDERR)     at packages/babel-runtime.js:166:3
W20171106-22:15:32.536(1)? (STDERR)     at infos.forEach.info (/home/shahin/firstApp/.meteor/local/build/programs/server/boot.js:414:13)
W20171106-22:15:32.536(1)? (STDERR)     at Array.forEach (<anonymous>)
W20171106-22:15:32.536(1)? (STDERR)     at /home/shahin/firstApp/.meteor/local/build/programs/server/boot.js:413:9
W20171106-22:15:32.536(1)? (STDERR)     at /home/shahin/firstApp/.meteor/local/build/programs/server/boot.js:463:5
W20171106-22:15:32.537(1)? (STDERR)     at Function.run (/home/shahin/firstApp/.meteor/local/build/programs/server/profile.js:510:12)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

我在终端上写这个命令时遇到了这个问题

shahin@shahin-Inspiron-N5010:~$ cd firstApp
shahin@shahin-Inspiron-N5010:~/firstApp$ meteor -v

如果有人帮我解决这个问题会很高兴。

1 个答案:

答案 0 :(得分:1)

欢迎使用StackOverflow!

看起来你还没有运行meteor npm install。 Meteor不会为您管理npm包,因此您需要自己运行该命令。