Node_modules is empty, packages don't auto install

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.

Bump. I need help with this ^^’

Just a question, are you able to install packages through the editor? You do this by your package.json file

No. When I add a dependency, it doesn’t install.

hmmm, have you put a name and version?

if not, try that and reply

I added them all via the Add Package button, which automatically does it.

you NEED a name and version like below:

“name”: “hello-express”,
“version”: “1.0”

if you already have this, try executing enable-pnpm in the project console

:slight_smile: thanks!