【发布时间】:2022-10-17 01:57:23
【问题描述】:
我正在尝试在流星上部署一个新版本并得到下一个错误:
/app/bundle/programs/server/boot.js:468hewvs
2022-10-05 15:03:02-05:00 }).run();
2022-10-05 15:03:02-05:00 ^hewvs
2022-10-05 15:03:02-05:00hewvs
2022-10-05 15:03:02-05:00Error:
2022-10-05 15:03:02-05:00The @babel/runtime npm package could not be found in your node_moduleshewvs
2022-10-05 15:03:02-05:00directory. Please run the following command to install it:
2022-10-05 15:03:02-05:00
2022-10-05 15:03:02-05:00 meteor npm install --save @babel/runtime
2022-10-05 15:03:02-05:00
2022-10-05 15:03:02-05:00 at module (packages/babel-runtime.js:20:9)hewvs
2022-10-05 15:03:02-05:00 at fileEvaluate (packages/modules-runtime.js:336:7)hewvs
2022-10-05 15:03:02-05:00 at Module.require (packages/modules-runtime.js:238:14)hewvs
2022-10-05 15:03:02-05:00 at require (packages/modules-runtime.js:258:21)hewvs
2022-10-05 15:03:02-05:00 at packages/babel-runtime.js:53:15hewvs
2022-10-05 15:03:02-05:00 at packages/babel-runtime.js:58:3hewvs
2022-10-05 15:03:02-05:00 at /app/bundle/programs/server/boot.js:401:38hewvs
2022-10-05 15:03:02-05:00 at Array.forEach (<anonymous>)hewvs
2022-10-05 15:03:02-05:00 at /app/bundle/programs/server/boot.js:226:21hewvs
2022-10-05 15:03:02-05:00 at /app/bundle/programs/server/boot.js:464:7hewvs
2022-10-05 15:03:02-05:00Application exited with code: 1zhssa
2022-10-05 15:03:49-05:00Application process starting, version 492zhssa
2022-10-05 15:03:53-05:00/app/bundle/programs/server/node_modules/fibers/future.js:280zhssa
2022-10-05 15:03:53-05:00 throw(ex);
我试过“meteor npm install --save @babel/runtime” 我尝试使用 babel 7.0.0-beta.42 和 7.0.0-beta.50 并没有工作 我更新了我所有的包和同样的错误,当我做 npm install 和什么时候我没有错误。我在本地运行一切正常,问题仅在我部署到 Meteor 时 我也尝试使用标志“--allow-incompatible-update”,但没有任何效果
【问题讨论】: