Can not find module 'express'

it showing me error : can not find module ‘express’ but i have already installed express

Hey there :slight_smile:

What is your build script are you installing with npm install or yarn? Is the directory structure maybe special - could the module be located in a different directory than your server?


this is my package.json file and i am using npm install

Can you solve my problem

Can you please solve this issue

Hi All,

As Bergur suggested above, the most likely issue here is that your Build Command isn’t installing dependencies. Most Node projects using a Web Service will need a Build Command of npm install at the very least. If your project does any sort of build then maybe npm install && npm run build. And if you use yarn, use the required command for yarn.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.