title: MAC OS - Error: Cannot find module postgres driver
body: <p>I just change my computer from windows to mac and tried to start my server app that based on
  postgresql and got this error: Error: Cannot find module '../driver/postgres/PostgresDriver' .
  i installed typeorm and pg and installed postgres and yet i get this message.</p>
  <p>hope somebody can help me.</p>
  <p>Full errors:</p>
  <pre><code>Error: Cannot find module '../driver/postgres/PostgresDriver'
  Require stack:
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/schema-builder/RdbmsSchemaBuilder.js
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/driver/sqlserver/SqlServerDriver.js
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/migration/MigrationExecutor.js
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/connection/Connection.js
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/connection/ConnectionManager.js
  - /Users/ohadsahar/Documents/Development/my_app/server/node_modules/typeorm/index.js
  - /Users/ohadsahar/Documents/Development/my_app/server/src/api/models/user.model.ts
  - /Users/ohadsahar/Documents/Development/my_app/server/src/api/services/auth.service.ts
  - /Users/ohadsahar/Documents/Development/my_app/server/src/api/controllers/auth.controller.ts
  - /Users/ohadsahar/Documents/Development/my_app/server/src/api/routes/auth.routes.ts
  - /Users/ohadsahar/Documents/Development/my_app/server/src/api/routes/index.ts
  - /Users/ohadsahar/Documents/Development/my_app/server/src/app.ts
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
      at Function.Module._load (internal/modules/cjs/loader.js:842:27)
      at Module.require (internal/modules/cjs/loader.js:1026:19)
      at require (internal/modules/cjs/helpers.js:72:18)
      at Object.&lt;anonymous&gt; (/Users/ohadsahar/Documents/Development/my_app/server/src/schema-builder/RdbmsSchemaBuilder.ts:17:1)
      at Module._compile (internal/modules/cjs/loader.js:1138:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
      at Module.load (internal/modules/cjs/loader.js:986:32)
      at Function.Module._load (internal/modules/cjs/loader.js:879:14)
      at Module.require (internal/modules/cjs/loader.js:1026:19)
  Waiting for the debugger to disconnect...
  </code></pre>
  <p>This is all the errors i get</p>
  <p>Package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;my_app_server&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;&quot;,
    &quot;main&quot;: &quot;index.js&quot;,
    &quot;scripts&quot;: {
      &quot;test&quot;: &quot;jest&quot;,
      &quot;build&quot;: &quot;npm run build-ts &amp;&amp; npm run copy-static-assets&quot;,
      &quot;start&quot;: &quot;node dist/app.js&quot;,
      &quot;build-ts&quot;: &quot;tsc&quot;,
      &quot;watch-ts&quot;: &quot;npm run copy-static-assets &amp;&amp; tsc -w&quot;,
      &quot;watch-node&quot;: &quot;nodemon&quot;,
      &quot;watch&quot;: &quot;concurrently -k -p \&quot;[{name}]\&quot; -n \&quot;TypeScript,Node\&quot; -c \&quot;yellow.bold,cyan.bold,green.bold\&quot; \&quot;npm run watch-ts\&quot; \&quot;npm run watch-node\&quot;&quot;,
      &quot;run-ts&quot;: &quot;ts-node src/app.ts&quot;,
      &quot;copy-static-assets&quot;: &quot;ts-node copyStaticAssets.ts&quot;,
      &quot;start:idea&quot;: &quot;ts-node $NODE_DEBUG_OPTION --ignore false src/app.ts --env=dev&quot;,
      &quot;migration:generate&quot;: &quot;ts-node ./node_modules/typeorm/cli migration:generate -n migration -d src/migration -f ./src/config/orm.config.ts&quot;,
      &quot;migration:run&quot;: &quot;ts-node ./node_modules/typeorm/cli migration:run -f ./src/config/orm.config.ts&quot;
    },
    &quot;author&quot;: &quot;&quot;,
    &quot;license&quot;: &quot;ISC&quot;,
    &quot;dependencies&quot;: {
      &quot;@sendgrid/mail&quot;: &quot;^7.2.0&quot;,
      &quot;@types/bcryptjs&quot;: &quot;^2.4.2&quot;,
      &quot;@types/node&quot;: &quot;12.11.7&quot;,
      &quot;@types/passport&quot;: &quot;1.0.0&quot;,
      &quot;aws-sdk&quot;: &quot;2.463.0&quot;,
      &quot;bcrypt-nodejs&quot;: &quot;0.0.3&quot;,
      &quot;bcryptjs&quot;: &quot;^2.4.3&quot;,
      &quot;body-parser&quot;: &quot;^1.18.3&quot;,
      &quot;chance&quot;: &quot;^1.1.4&quot;,
      &quot;class-transformer&quot;: &quot;^0.2.3&quot;,
      &quot;class-validator&quot;: &quot;^0.11.0&quot;,
      &quot;concurrently&quot;: &quot;^4.1.0&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;del&quot;: &quot;^4.1.1&quot;,
      &quot;dotenv&quot;: &quot;^8.0.0&quot;,
      &quot;express&quot;: &quot;^4.16.4&quot;,
      &quot;helmet&quot;: &quot;^3.21.2&quot;,
      &quot;http-status-codes&quot;: &quot;^1.3.0&quot;,
      &quot;lodash&quot;: &quot;^4.17.15&quot;,
      &quot;minimist&quot;: &quot;^1.2.0&quot;,
      &quot;moment&quot;: &quot;^2.23.0&quot;,
      &quot;morgan&quot;: &quot;^1.9.1&quot;,
      &quot;multer&quot;: &quot;^1.4.2&quot;,
      &quot;mysql&quot;: &quot;^2.16.0&quot;,
      &quot;nodemailer&quot;: &quot;^5.0.0&quot;,
      &quot;nodemailer-sendgrid-transport&quot;: &quot;^0.2.0&quot;,
      &quot;passport&quot;: &quot;^0.4.0&quot;,
      &quot;passport-jwt&quot;: &quot;^4.0.0&quot;,
      &quot;pg&quot;: &quot;^8.0.3&quot;,
      &quot;plivo&quot;: &quot;^4.6.0&quot;,
      &quot;reflect-metadata&quot;: &quot;^0.1.12&quot;,
      &quot;shelljs&quot;: &quot;^0.8.3&quot;,
      &quot;typedi&quot;: &quot;^0.8.0&quot;,
      &quot;typeorm&quot;: &quot;0.2.19&quot;,
      &quot;typeorm-typedi-extensions&quot;: &quot;^0.2.1&quot;,
      &quot;winston&quot;: &quot;^3.1.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@types/bcrypt-nodejs&quot;: &quot;0.0.30&quot;,
      &quot;@types/bluebird&quot;: &quot;^3.5.25&quot;,
      &quot;@types/cors&quot;: &quot;2.8.6&quot;,
      &quot;@types/csv-parse&quot;: &quot;^1.1.11&quot;,
      &quot;@types/email-templates&quot;: &quot;^3.5.0&quot;,
      &quot;@types/express&quot;: &quot;4.16.0&quot;,
      &quot;@types/express-serve-static-core&quot;: &quot;4.16.0&quot;,
      &quot;@types/helmet&quot;: &quot;0.0.42&quot;,
      &quot;@types/lodash&quot;: &quot;^4.14.119&quot;,
      &quot;@types/minimist&quot;: &quot;^1.2.0&quot;,
      &quot;@types/moment&quot;: &quot;^2.13.0&quot;,
      &quot;@types/moment-timezone&quot;: &quot;^0.5.12&quot;,
      &quot;@types/morgan&quot;: &quot;^1.7.35&quot;,
      &quot;@types/multer&quot;: &quot;^1.4.3&quot;,
      &quot;@types/nodemailer&quot;: &quot;^4.6.5&quot;,
      &quot;@types/papaparse&quot;: &quot;^4.5.7&quot;,
      &quot;@types/passport-jwt&quot;: &quot;^3.0.1&quot;,
      &quot;@types/pug&quot;: &quot;^2.0.4&quot;,
      &quot;@types/shelljs&quot;: &quot;^0.8.1&quot;,
      &quot;@types/winston&quot;: &quot;^2.4.4&quot;,
      &quot;ts-node&quot;: &quot;^7.0.1&quot;,
      &quot;tsconfig-paths&quot;: &quot;^3.8.0&quot;,
      &quot;typescript&quot;: &quot;^3.7.5&quot;
    }
  }
  </code></pre>