Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't run Pulser #23

Closed
1 task done
yuan-chan opened this issue Sep 29, 2021 · 2 comments
Closed
1 task done

[Bug]: Can't run Pulser #23

yuan-chan opened this issue Sep 29, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yuan-chan
Copy link

yuan-chan commented Sep 29, 2021

Contact Details

yuan@white-paper.jp

What happened ?

pm2 shows an error and cannot be executed.
I was able to run it in the previous version.

How can we reproduce it ?

run "pm2 start ecosystem.config.js --env production"

Relevant log output

0|Pulsar  | WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
0|Pulsar  | WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
0|Pulsar  | WARNING: NODE_APP_INSTANCE value of '0' did not match any instance config file names.
0|Pulsar  | WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
0|Pulsar  | { Error: Cannot find module 'node:crypto'
0|Pulsar  |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
0|Pulsar  |     at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:61:29)

Code of Conduct

  • I agree to follow Pulsar's Code of Conduct
@yuan-chan yuan-chan added the bug Something isn't working label Sep 29, 2021
@BSoDium
Copy link
Owner

BSoDium commented Sep 29, 2021

This seems to be an issue linked to the latest security improvement, the module node:crypto was first introduced in node 15.x . Can you try upgrading to node 16.10.0 ? If this still fails, then I'll need the full log to understand what is actually happening.

@yuan-chan
Copy link
Author

I was able to work by updating node to 16.10.0! Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants