Hello.
I’m currently building a production environment using Docker containers.
When running Meteor using PM2, an error is displayed and it does not start. (node_module @babel / runtime could not be found).
14:33:47 PM2 | App [Myservice:0] starting in -cluster mode-
14:33:47 1|Myservice | Error:
14:33:47 1|Myservice | The @babel/runtime npm package could not be found in your node_modules
14:33:47 1|Myservice | directory. Please run the following command to install it:
14:33:47 1|Myservice | meteor npm install --save @babel/runtime
14:33:47 1|Myservice | at babel-runtime.js (packages/babel-runtime.js:20:9)
14:33:47 1|Myservice | at fileEvaluate (packages/modules-runtime.js:336:7)
14:33:47 1|Myservice | at Module.require (packages/modules-runtime.js:238:14)
14:33:47 1|Myservice | at require (packages/modules-runtime.js:258:21)
14:33:47 1|Myservice | at packages/babel-runtime.js:53:15
14:33:47 1|Myservice | at packages/babel-runtime.js:58:3
14:33:47 1|Myservice | at /var/www/html/aphrodite/bundle/programs/server/boot.js:398:38
14:33:47 1|Myservice | at Array.forEach (<anonymous>)
14:33:47 1|Myservice | at /var/www/html/aphrodite/bundle/programs/server/boot.js:226:21
14:33:47 1|Myservice | at /var/www/html/aphrodite/bundle/programs/server/boot.js:461:7
2020-03-24T14:33:47: PM2 log: App name:Myservice id:1 disconnected
14:33:47 PM2 | App name:Myservice id:1 disconnected
2020-03-24T14:33:47: PM2 log: App [Myservice:1] exited with code [0] via signal [SIGINT]
14:33:47 PM2 | App [Myservice:1] exited with code [0] via signal [SIGINT]
2020-03-24T14:33:47: PM2 log: App [Myservice:1] starting in -cluster mode-
14:33:47 PM2 | App [Myservice:1] starting in -cluster mode-
2020-03-24T14:33:47: PM2 log: App [Myservice:0] online
14:33:47 PM2 | App [Myservice:0] online
2020-03-24T14:33:47: PM2 log: App [Myservice:1] online
14:33:47 PM2 | App [Myservice:1] online
At this time, I think that there is no missing because babel-runtime is included in both global and local node_modules. . .
If you have encountered any similar events, please share your information!
Meteor: 1.8.2
npm: 6.4.1