skokov3812 / encrypted-smiley-secure-protocol

Node.JS library Encrypted Smiley ® Secure Protocol (eSSP, SSP)
MIT License
39 stars 32 forks source link

I get this warning regarding random-prime package... #11

Closed adamfrost839 closed 4 years ago

adamfrost839 commented 4 years ago

Warning: require() of ES modules is not supported. require() of /opt/storage/appdir/node_modules/random-prime/index.js from /opt/storage/appdir/node_modules/encrypted-smiley-secure-protocol/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename /opt/storage/appdir/node_modules/random-prime/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /opt/storage/appdir/no de_modules/random-prime/package.json.

skokov3812 commented 4 years ago

What version of node, npm are you using?

adamfrost839 commented 4 years ago

npm -v 6.12.1

node -v v12.13.1

pm2 -v 2.7.1