How to fix Node modules issue in AWS EC2 server deployment?

How to fix Node modules issue in AWS EC2 server deployment?

WildData
Shopify Partner
23 1 7

Hello,
I developed a Node app using an AWS EC2 server.
I'm using Github Actions as CI/CD.


I'm having a very frustrating issue right now with the node modules. Every time I try to install them, my server becomes unresponsive, and I have to manually stop and start it again.

Everything seems to be related to the fsevents module. In package-lock.json, it mentions 

"os": ["darwin" ] since I work with MacOS, but the server is Ubuntu, I changed that to "os": ["darwin" ,"linux"] after following recommendations on Google. But now npm install fails with "reify:tslib: sill audit bulk request {"
I tried removing the package-lock.json file and node_modules folder, the "
sudo npm i --no-optional" command, the "sudo npm i -f" command.  Nothing works.

Do you have any idea how to fix this issue?
Thanks

Replies 0 (0)