Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Meteor 1.4.2.3-在您的node_模块中找不到babel运行时npm包_Meteor_Babeljs - Fatal编程技术网

Meteor 1.4.2.3-在您的node_模块中找不到babel运行时npm包

Meteor 1.4.2.3-在您的node_模块中找不到babel运行时npm包,meteor,babeljs,Meteor,Babeljs,我刚刚在Ubuntu服务器上部署了一个Meteor应用程序,安装了所有软件包,但当我尝试访问该页面时,浏览器控制台会不断向我显示这一点 Uncaught Error: The babel-runtime npm package could not be found in your node_modules directory. Please run the following command to install it: meteor npm install --save babel-r

我刚刚在Ubuntu服务器上部署了一个Meteor应用程序,安装了所有软件包,但当我尝试访问该页面时,浏览器控制台会不断向我显示这一点

Uncaught Error: The babel-runtime npm package could not be found in your node_modules 
directory. Please run the following command to install it:

  meteor npm install --save babel-runtime


    at t.node_modules.meteor.babel-runtime.babel-runtime.js (a72cdf7….js?meteor_js_resource=true:34)
    at a (a72cdf7….js?meteor_js_resource=true:9)
    at r (a72cdf7….js?meteor_js_resource=true:9)
    at a72cdf7….js?meteor_js_resource=true:34
    at a72cdf7….js?meteor_js_resource=true:34
t.node_modules.meteor.babel-runtime.babel-runtime.js @ a72cdf7….js?meteor_js_resource=true:34
a @ a72cdf7….js?meteor_js_resource=true:9
r @ a72cdf7….js?meteor_js_resource=true:9
(anonymous) @ a72cdf7….js?meteor_js_resource=true:34
(anonymous) @ a72cdf7….js?meteor_js_resource=true:34
我执行了meteor npm安装——按要求保存babel运行时,但似乎没有效果

有人面临同样的错误吗


提前感谢

请注意,此错误来自2017年。当时有几个人得到了以下帮助:

确保在构建生产捆绑包之前安装npm

$ git clone repo
$ cd repo
$ npm install # IMPORTANT!
$ meteor build --directory ../build

现在在Meteor 1.8.1上,我得到了相同的错误,除了
@babel/runtime
而不是
babel runtime
。同样的解决方案仍然有效:在运行meteor build之前,在源代码目录中运行
npm install
,如果您在服务器上运行meteor命令,那么您就错了。您应该构建一个捆绑包,部署捆绑包,进行npm安装,并做好准备。这就是我正在做的,但客户端仍然会出现此错误。您好,是的,我也遇到了此问题…您能解决此问题吗?怎样?