Hey all! I’m writing a blog-type page, and it’s been working mostly fine, except I had to do “npm install moment” in the console every once in a while. Now, nothing is working. The site simply doesn’t load, with a 504 gateway timeout, and the logs say “Could not find module express”. My package.json contains this:
"dependencies": {
"ejs": "^3.0.1",
"express": "^4.17.1",
"moment": "^2.24.0"
}
I don’t see why it doesn’t work. This was done with the Add Package button. When I do ls node_modules/
in the console, it’s just empty. Any idea why this could be, and any way to fix this?
Thanks in advance!
EDIT: I managed to get it working for now by doing npm install ejs express moment
, but I don’t think this will be sustainable.